ez.trim | R Documentation |
underlying function is gsub
with regular expression
ez.trim(s, how = 4)
s |
a string or a data frame. if data frame, how will be ignored/forced to be 'both' |
how |
a num 1=left only; 2=right only; 3=left and right; 4 (default)=left and right and merge middle |
trimws
"Hi buddy what's up Bro" --> "Hi buddy what's up bro"
For portability, whitespace is taken as the character class [ \t\r\n] (space, horizontal tab, line feed, carriage return).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.