trim whitespace from a string

Trim whitespace from a string

str_trim(string, side=c("both", "left", "right"))

str_squish(string)

copy from

https://stringr.tidyverse.org/reference/str_trim.html

你可能感兴趣的:(trim whitespace from a string)