powered by
str_trim(string, side = c("both", "left", "right"))
str_pad
str_trim(" String with trailing and leading white space\t") str_trim("\n\nString with trailing and leading white space\n\n")
Run the code above in your browser using DataLab