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.
我有一个这样的数据框:
ID AB 1 x5.11 2,34 2 x5.57 5,36 3 x6,13 0,45
我想删除列 A 的所有值的“x”。我怎样才能最好地在 R 中实现这一点。
谢谢!
我找到了一个非常简单的方法:
data.frama$A <- gsub("x", "", data.frame$A)