powered by
trim(x)
x
trim("white space at end ") trim("white space at start and end ") trim(c("string1 ", "string2", "string 3 "))
Run the code above in your browser using DataLab