I\'ve been trying to remove the white space that I have in a data frame (using R). The data frame is large (>1gb) and has multiple columns that contains whi
One possibility involving just dplyr could be:
dplyr
data %>% mutate_if(is.character, trimws)
Or considering that all variables are of class character:
data %>% mutate_all(trimws)