【问题标题】:error in R: arguments imply differing number of rows: 7, 6R中的错误:参数暗示不同的行数:7、6
【发布时间】:2016-11-18 01:54:46
【问题描述】:

这是我在 R 中输入的内容

> sampleTable<-data.frame(sampleName=sampleFiles, fileName=sampleFiles, condition=sampleCondition)

它给了我这个错误

data.frame 中的错误(sampleName = sampleFiles,fileName = sampleFiles, : 参数暗示不同的行数:7、6

有人能说出为什么会出现这个错误吗? 7,6 是什么意思?谢谢!

【问题讨论】:

  • length(sampleFiles)length(sampleCondition) 不同

标签: r bioconductor


【解决方案1】:

HubertL 在 cmets 中指出:

length(sampleFiles) 和 length(sampleCondition) 不同

您应该使用具有相同长度的参数来构建该 data.frame

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-24
    • 2017-11-04
    • 1970-01-01
    • 1970-01-01
    • 2015-02-04
    相关资源
    最近更新 更多