powered by
Remove whitespace from columns using a tidyselect specification.
remove_whitespace(.data, ...)
data frame
tidyselect specification (default selection: all character columns)
tibble::tibble(a = c(" a ", "b ", " c")) -> t1 t1 t1 %>% remove_whitespace()
Run the code above in your browser using DataLab