powered by
str_rm_whitespace_df() removes all leading, trailing, and collapses multiple consecutive white spaces in non-numerical variables in a data frame.
str_rm_whitespace_df()
str_rm_whitespace_df(df)
A clean data frame with no leading or trailing spaces.
A data frame or data frame extension (e.g. a tibble) with leading or trailing spaces.
richest_in_nigeria str_rm_whitespace_df(richest_in_nigeria)
Run the code above in your browser using DataLab