首页 > 解决方案 > 如何用R中的空格替换“_”?

问题描述

水平(问题$价值)

“其他” “Custom_and_Tax_Issues” “Copying_Design” “Dealing_with_buyers”

我想用“自定义和税务问题”等空格替换 _

有什么办法吗?

标签: rspecial-characters

解决方案


values <- c("Others", "Custom_and_Tax_Issues", "Copying_design", "Dealing_with_buyers")

gsub("_", " ", values)

推荐阅读