Learn R Programming

frheritage (version 0.1.0)

ids_to_codes: Determine internal codes from IDs titles

Description

This internal function converts IDs tiles into their corresponding internal codes (e.g., "IMMH", "PAMH"). It matches based on predefined keyword patterns and chooses the most specific code when multiple patterns match.

Usage

ids_to_codes(x)

Value

character vector of internal codes corresponding to each input IDs titles. Returns NA if no pattern matches.

Arguments

x

character vector of IDs titles.