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.
我有一列包含值,'A1','A2','A3','A1','A3'等。我曾经rownames(mydf) = make.names(mydf$Data, unique=TRUE)将此列设置为row.names,但它将名称更改为'A1',' A2.','A3.','A1..1'等。如果我不使用unique=TRUE它是不可能的。您对如何在不更改值/名称的情况下将此列设置为行名有什么建议吗?
rownames(mydf) = make.names(mydf$Data, unique=TRUE)
unique=TRUE
谢谢!!!