Skip to content
Prev 367430 / 398503 Next

Replace Text but not from within a word

For tasks like this, you will probably want to make sure to import the data as character data rather than as a factor.  E.g.

dat <- read.csv( "myfile.csv", header=FALSE, as.is=TRUE )

You can check what you have with the str() function.