Description Usage Arguments Value
sub_value
finds regular expressions within x
specified by
from
and substitutes them with strings specified in to
. Regexs
specified by from
will be replaced in a 1:1 or many:1 fashion. Only
regexs within from
that are contained in x
will be replaced.
1 | sub_regex(x, from, to)
|
x |
A character vector, that will be searched for a collection of
regular expressions (specified |
from |
A vector of regexs potentially contained within |
to |
The corresponding strings that will be used to replace
elemnts of |
A character vector, derived from x
, will have 0 or more
elements altered based on the specified from
:to
mapping
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.