trim.space | R Documentation |
Removes leading and/or trailing space(s) from a character vector. By default, it removes both leading and trailing spaces.
trim.space( x, what = c("both", "leading", "trailing", "none"), space.regex = "[:space:]", ... )
x |
a character vector which values need whitespace trimming |
what |
which part of the string should be trimmed. Defaults to |
space.regex |
a character value containing a regex that defines a space character |
... |
additional arguments for |
a character vector with (hopefully) trimmed spaces
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.