My data look like this:
word1 word2 nprefix storms_come_in_here is 4 come_in_here_is nothing 4 in_here_is_nothing like 4
here_is_nothing_like a 4
is_nothing_like_a southern 4
nothing_like_a_southern thunderstorm 4
I am trying to remove the underscores from the columns of word1 and replace them with blanks.
So for example “storms_come_in_here” would be “storms come in here”
The function to do that would be
library(stringr) string_replace( x$word1, “_”, “ “)
To have my data look the same way as before, just changing the word1 column, ought I to use an apply() function? How to do that?