我已经使用过gsub
remove +
,这是我的代码:
clean_up[,5] <- gsub("\\+", "",clean_up[,5])
但是现在我想删除角色\
。我该怎么做gsub
?
您可以尝试:
a <- "This is a \\string."
gsub("\\p{P}", "", a, perl=TRUE)
#[1] "This is a string"
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句