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
  • 阅读 ( 5170 )
  • 分类:R

0 条评论

请先 登录 后评论
rzx
rzx

71 篇文章

作家榜 »

  1. omicsgene 680 文章
  2. 安生水 336 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. xun 74 文章
  7. CORNERSTONE 72 文章
  8. rzx 71 文章