Learn R Programming

tall (version 0.5.1)

txt_recode_batch_cpp: Batch text recoding (internal C++ function)

Description

Internal C++ function for batch recoding multiple character vectors. Efficiently recodes multiple text columns using a single hash table lookup.

Value

List of character vectors with recoded values

Arguments

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)

Details

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.