Description Usage Arguments Value
For each element in x
, if it is present in the 'search_list', replace
it with the corresponding value in the 'return_list'. Any element that is
not in the 'search_list' is returned unaltered.
1 | replace_with(x, search_list, return_list, strict = FALSE)
|
x |
A vector. |
search_list |
A vector. |
return_list |
A vector. This should be the same length as
|
strict |
Boolean. Should every element of 'x' be present
in |
A vector of the same length as x
, containing some
values from x
and some values from return_list
(so the class
of the vector may be different from that for 'x').
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.