Skip to contents

Loads a survey from the datalibweb (DLW) storage using pipload::load_dlw_data(), converts it to a data.table, attaches survey-ID components as attributes, and adds the PIP class.

Usage

inv_dlw_load(inv)

Arguments

inv

A one-row data.frame (or data.table) from the DLW inventory. Must contain a survey_id column. When present, latest_version_id selects the validated raw version. For a valid, available row with a file_path, use only its .qs2 filename in the configured DLW store, preserving its spelling. The stem must match survey_id apart from letter case, the extension is checked without regard to case, and the row must supply an exact version ID. Rows without a filename keep the legacy survey_id lookup.

Value

A data.table with PIP class and survey-ID attributes.