trim {bazar} | R Documentation |
The function trim
removes unnecessary whitespaces
from a character vector.
trim(x)
x |
character. The character vector at stake. |
A character vector of the same length as x
.
gsub
.
trim(c(" a b", "Hello World "))