| umx_trim | R Documentation |
Returns string without leading or trailing whitespace, like the php function.
See also built-in base::trimws() does the same.
umx_trim(string, removeThis = NULL)
string |
to trim |
removeThis |
if not NULL then this regular expression is removed wherever found in 'string' |
string
base::trimws()
Other String Functions:
umx,
umx_explode(),
umx_explode_twin_names(),
umx_grep(),
umx_names(),
umx_paste_names(),
umx_rot(),
umx_str_chars(),
umx_str_from_object()
umx_trim(" dog") # "dog"
trimws(" dog ", "l") # added by R in v 3.3.0
umx_trim("dog ") # "dog"
umx_trim("\t dog \n") # "dog"
umx_trim("xlsx dog.xlsx", "\\.?xlsx ?") # "dog"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.