str_rm_blank_space {textTools} | R Documentation |
Remove and replace excess white space from strings.
str_rm_blank_space(x, replacement = " ")
x |
A vector or string. |
replacement |
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.
str_rm_blank_space(c("this is a test. ", " will it work? "))