Create standard name
Arguments
- x
object
- ...
Arguments passed on to
replace_patterns
patterns
Accepts both vector or table. If patterns is a table can also include replacements column.
patterns_col
If patterns is not a vector which column to use. Default is 1.
patterns_mode
Mode of matching. Could be one of c("all", "first", "last"). The default is "all" (it is 2x faster than "first" and "last" because of handy stri_replace_all_* functions). Also possible to pass a vector (same length as patterns)
patterns_mode_col
Column in patterns table with the mode of matching
patterns_type
Type of pattern for matching. Default is "fixed" (calling codestri_replace_all_fixed). Other options are:
patterns_type_col
Column with the type of pattern in case when patterns should have different types
patterns_replacements_col
If patterns is not a vector and includes replacements which column to use for replacements. Default is 2.
replacements
If patterns does not have column with replacements provide it here.