Skip to contents

First-pass canonicalization layer based on the public CPADS PUMF field names. If frame already carries the canonical columns it is returned unchanged (after validation). Otherwise raw PUMF columns are remapped using .MORIE_CPADS_RAW_COLUMN_MAP and missing/DKNR codes (98, 99) are converted to NA.

Usage

morie_cpads_canonicalize_frame(frame)

Arguments

frame

A data.frame carrying raw CPADS PUMF columns (or the already-canonical analysis columns).

Value

A data.frame with the canonical CPADS analysis columns.