R报错‘length(x) = 12 > 1' in coercion to 'logical(1)’

运行R报错: 解决: 将脚本中group$group == treat || group$group == control中“||”改为“|”,即改成group$group == treat | group$group == control || 和 | 都是表示“或”,区别是||只要满...

运行R报错:

attachments-2023-02-2bA7Dn5563e5e2a0eb00d.png解决:

将脚本中group$group == treat || group$group == control中“||”改为“|”,即改成group$group == treat | group$group == control

|| 和 | 都是表示“或”,区别是||只要满足第一个条件,后面的条件就不再判断,而|要对所有的条件进行判断。

  • 发表于 2023-02-10 14:26
  • 阅读 ( 7595 )
  • 分类:R

0 条评论

请先 登录 后评论
rzx
rzx

88 篇文章

作家榜 »

  1. omicsgene 760 文章
  2. 安生水 370 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. xun 96 文章
  6. rzx 88 文章
  7. 红橙子 81 文章
  8. Ti Amo 78 文章