【发布时间】:2021-03-27 15:12:24
【问题描述】:
我有这个data.frame:
scoreA scoreB scoreC
50 60 70
... ... ...
我想添加一个这样的列:
scoreA scoreB scoreC Final_mean
50 60 70 60
... ... ...
如何在 R 中做到这一点?我如何为任何功能在行上工作。现在,我的意思是。
【问题讨论】:
-
我已经更新了我的答案。我想要一个更通才的方式
-
@Cettt 抱歉,更新了