Last chance! 50% off unlimited learning
Sale ends in
strtrim(s)
deblank(s)
strtrim
removes leading and trailing white space from a string or
from all strings in a character vector. deblank
removes trailing white space only from a string or
from all strings in a character vector.
strjust
s <- c("abc", "abc ", "abc ", "a b c ", "abc", "a b c")
strtrim(s)
deblank(s)
Run the code above in your browser using DataLab