📜  gsub 特殊字符 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:51:59.900000             🧑  作者: Mango

代码示例1
#In R the escape symbol is a doube backslash \\
#For example, to substitute every oper square bracket we have in a string
#with, let's say, the string "newword"
gsub("\\[", "newword", string)