| txt_recode_batch_cpp | R Documentation |
Internal C++ function for batch recoding multiple character vectors. Efficiently recodes multiple text columns using a single hash table lookup.
x |
List of character vectors to recode |
from |
Character vector of values to match |
to |
Character vector of replacement values |
na_rm |
Logical, whether to set unmatched values to NA (default: FALSE) |
This is an internal C++ function exported for advanced users. The hash table is constructed once and reused for all vectors in the list, making it very efficient for batch operations.
List of character vectors with recoded values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.