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

View source: R/RcppExports.R

txt_recode_batch_cppR Documentation

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.

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.

Value

List of character vectors with recoded values


tall documentation built on Dec. 12, 2025, 5:07 p.m.