The `ns_add_labels` function applies
labels to variables in a dataset
based on a provided codebook. It
assigns variable labels, value
labels,
and metadata required for the
"ns-data" class.
Usage
ns_add_labels(data, codebook)
Value
A data frame with the same
structure as `data`, but with
variable and value labels applied.
The resulting object is assigned
the class `"ns-data"`.