trim_anything | R Documentation |
See strex::str_trim_anything()
.
trim_anything(string, pattern, side = "both") str_trim_anything(string, pattern, side = "both")
string |
A character vector. |
pattern |
The pattern to look for. The default interpretation is a regular expression, as described in stringi::about_search_regex. To match a without regular expression (i.e. as a human would), use
coll(). For details see |
side |
Which side do you want to trim from? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.