strTrim | R Documentation |
Removes leading and trailing white space from a string.
strTrim(s)
deblank(s)
s |
character string or character vector |
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.
A character string or character vector with (leading and) trailing white space.
strjust
s <- c(" abc", "abc ", " abc ", " a b c ", "abc", "a b c")
strTrim(s)
deblank(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.