Skip to content

How to replace all commas with semicolon in a string

1 message · Jim Lemon

#
Hi Jun,
As you do seem to want to replace commas within, not between, strings, try gsub:

gsub(",",";",test[,1])

Jim