How to remove unique characters within strings in R?
https://www.tutorialspoint.com/how-to-remove-unique-characters-within-strings-in-r
-
13-09-2020 - |
Question
How to remove unique characters within strings in R?
We can achieve this by using gsub function
Example
> x <- c("14870e", "16578e", "302e47", "e95748") > x [1] "14870e" "16578e" "302e47" "e95748" > gsub("e", "", x) [1] "14870" "16578" "30247" "95748"
Advertisements
Not affiliated with Tutorialspoint