如何在 R 中用 space 替换“_”?
How to replace "_" with space in R?
levels(problem$value)
“其他”“Custom_and_Tax_Issues”“Copying_Design”“Dealing_with_buyers”
我想将 _ 替换为 space,例如“海关和税务问题”
有什么办法吗?
values <- c("Others", "Custom_and_Tax_Issues", "Copying_design", "Dealing_with_buyers")
gsub("_", " ", values)
levels(problem$value)
“其他”“Custom_and_Tax_Issues”“Copying_Design”“Dealing_with_buyers”
我想将 _ 替换为 space,例如“海关和税务问题”
有什么办法吗?
values <- c("Others", "Custom_and_Tax_Issues", "Copying_design", "Dealing_with_buyers")
gsub("_", " ", values)