Skip to contents

Maps a character vector of survey_id and/or pip_id identifiers to the subset present in the module-filtered, latest-version inventory (inv_svy_full). Lookup is first-by-survey_id membership, then by pip_id reverse-map through the already-loaded master inventory. Unknown identifiers are collected, not aborted.

Usage

resolve_force_surveys(force_surveys, inv_svy_full, dt_master, verbose = TRUE)

Arguments

force_surveys

Character vector of survey_id and/or pip_id identifiers, or NULL.

inv_svy_full

A data.table of the module-filtered, latest-version DLW inventory (already computed by valid_dlw_load()).

dt_master

A data.table of the PIP master inventory, already loaded by the caller, or NULL when unavailable.

verbose

Logical. Print progress messages.

Value

A named list with character vectors: survey_ids (resolved survey_ids present in inv_svy_full), resolved_from_survey_id, resolved_from_pip_id, and unknown.