collapse_var | R Documentation |
Collapse a subset of values within a vector into a new value
collapse_var(ORIG_VAR, ORIG_VALUES, NEW_VALUE)
ORIG_VAR |
The input vector |
ORIG_VALUES |
A subset of values from the input vector to be collapsed |
NEW_VALUE |
The new value to replace
|
A character or numeric vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.