Hi i Have data frame need to replace all special characters with "."
df
variabe
name:A-B c
name/A-B-c
name-A/B:c
i have tried
df$variable = gsub("-", ".", df$variable)
df$variable = gsub(":", ".", df$variable)
.. Is there any function / modification to do in a single step
o/p
variabe
name.A.B.c
name.A.B.c
name.A.B.c
Thanks