str_trim | R Documentation |
Dependency-free drop-in alternative for stringr::str_trim()
.
str_trim(string, side = c("both", "left", "right"))
string |
Input vector. Either a character vector, or something coercible to one. |
side |
Side on which to remove whitespace:
|
A character vector the same length as string
.
Adapted from the stringr package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.