powered by
Remove and replace excess white space from strings.
str_rm_blank_space(x, replacement = " ")
A vector or string.
A string to replace the blank space with, defaults to " ", which replaces excess space with a single space.
x, with extra white space removed/replaced.
# NOT RUN { str_rm_blank_space(c("this is a test. ", " will it work? ")) # }
Run the code above in your browser using DataLab