如何使用cbind向具有不同行数的数据框添加向量

时间:2020-07-23 02:15:52

标签: multiple-columns cbind

我试图在数据框内添加一列,并将值存储在向量中,但是却收到错误消息Error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 82, 63

这是我使用的代码:

Patient5GeneExpressionProfile <- cbind(Patient5GeneExpressionProfile, geneclusters)

0 个答案:

没有答案