Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 ff 数据框变量,其名称是在循环的每次迭代中在代码中创建的。我想将此变量的行名设置为 NULL,但是下面的代码不起作用。有人可以提出解决方案吗?
a="foo" row.names(eval(parse(text=paste(a, "_USD.ff", sep="")))) <- NULL
我实际上找到了解决问题的方法:
a="foo" eval(parse(text=paste("row.names(", a, "_ATMF_USD.ff)<-NULL", sep="")))
这行得通。