How can one use regex to remove +
signs in strings.
I am sure there is a simple solution but I couldn't find it. Here is a toy example.
X Y
mouse+ 8
elephant+ 9
wolf 5
Attempted many variations of gsub but with no success.
DF$X <- gsub(DF$X, pattern = "\+", replacement = "")
Output should look like this
X Y
mouse 8
elephant 9
wolf 5