【问题标题】:How do I determine the length of a column equal to a certain value in r?如何确定等于 r 中某个值的列的长度?
【发布时间】:2022-06-16 11:20:02
【问题描述】:

我试图找出列基因型中我的每个分类变量存在多少数据点。到目前为止,当第一行应该返回大约是下一行代码的 1/3 时,以下代码返回相同的值。

length(CYP$Genotype == "CYP1B1 KO")
length(CYP$Genotype)

【问题讨论】:

  • sum 不是length

标签: r


猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-04-04
  • 1970-01-01
  • 2015-11-17
  • 1970-01-01
  • 2012-02-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多