Remove leading and/or trailing whitespace from character strings.
a character vector
a character string specifying whether to remove both
leading and trailing whitespace (default), or only leading
a string specifying a regular expression to match (one character of) “white space”, see Details for alternatives to the default.
sub(re, "", *, perl = TRUE), i.e., PCRE
library regular expressions are used.
For portability, the default ‘whitespace’ is the character class
[ \t\r\n] (space, horizontal tab, carriage return,
[\h\v] is a good (PCRE)
generalization to match all Unicode horizontal and vertical white
space characters, see also https://www.pcre.org.
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.