replace_synonym_list | R Documentation |
Use a regular expression to choose the synonyms in a list to replace in a data.frame.
replace_synonym_list(
x,
synonyms,
pattern = "^synonym",
pattern_ignore_case = TRUE,
...
)
x |
The values to possibly replace |
synonyms |
A named character vector where the names are the verbatim value and the values are the values to use for replacement. When 'x' is a data.frame, this may be a data.frame with columns named 'replacement_column', 'verbatim_column', and 'preferred_column' or a list of such data.frames. |
pattern |
The regular expression to use to choose the names from 'synonyms' to use for replacement. |
pattern_ignore_case |
Should case be ignored for name matching in 'synonyms'? |
... |
Passed to 'replace_synonym()' |
The output of 'replace_synonym()' applied to a subset of the list, 'synonyms'.
Other Synonyms:
replace_synonym()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.