谁能解释一下如何更改 data.frame
中的单个单元格到别的东西。
基本上我只想重命名那个单元格,而不是所有与其匹配的单元格。
我不能使用 edit()
命令,因为它会搞砸我的脚本,因为我使用了 data.frame
在几次。
提前致谢
最佳答案
data.frame[row_number, column_number] = new_value
例如,如果
x
是你的 data.frame:x[1, 4] = 5
关于r - 如何更改 data.frame 中的单个值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14782206/