trimcpp | R Documentation |
This function removes all leading or trailing white space, including
space (' '), form feed (\f
), line feed (\n
), carriage return (\r'
,
horizontal tab (\t
), and vertical tab (\v
), from a character vector.
trimcpp(s)
s |
A character vector. |
A character vector.
x <- c(" leading", "trailing ", " both ") trimcpp(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.