Description Usage Arguments Details Examples
This function takes a character string and recodes it.
Default recoding functions are available in functions such as
tc_recode_vehicle_type()
and tc_recode_casualties
.
1 |
x |
Character string to recode |
pattern |
A named character vector with values representing new values.
Has the form |
pattern_match |
Character string in the form of
|
It is based on the function stringr::str_replace_all()
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.