Reputation: 21
I have a table column names and variables contain comma eg. "Stark, Tony". How could I remove comma from all row by using R command?
Upvotes: 0
Views: 720
Reputation: 226247
stringr::str_remove("Stark, Tony", ",")
## [1] "Stark Tony"
or in base R
gsub(",", "", "Stark, Tony")
Upvotes: 3