Let's say if the data frame is df
with column foo
. Is there a way to remove a string starting with @ in data frame column in R.
Example:
df <- data.frame(foo=c("@john is awesome than @steve",
"@steve is good","@mike is nice"))
df
foo
1 @john is awesome than @steve
2 @steve is good
3 @mike is nice
How do I remove the entire name @john,@Steve, @mike all that starts with @.
The Final output should be
foo
1 is awesome than
2 is good
3 is nice
I would like to get rid of all the strings from a column foo
in data frame df
that start with delimiter @.