powered by
Returns string w/o leading or trailing whitespace
umx_trim(string, removeThis = NULL)
to trim
if not NULL then this string is removed wherever found in 'string'
- string
- http://tbates.github.io, https://github.com/tbates/umx
Other String Functions: umx_explode_twin_names, umx_explode, umx_grep, umx_rot
umx_explode_twin_names
umx_explode
umx_grep
umx_rot
# NOT RUN { umx_trim(" dog") # "dog" umx_trim("dog ") # "dog" umx_trim("\t dog \n") # "dog" umx_trim("xlsx dog.xlsx", "\\.xlsx$") # "dog" # }
Run the code above in your browser using DataLab