I am using this:
OriginalData <- data.frame(lapply(OriginalData, function(x) lower(trim(x))))
remove spaces and transform characters to lowers for a whole dataframe.
Unfortunately, entries like:
Hello world
are not transformed to:
hello world
any ideas? Thanks!