labelled-output: Labelled vector output

labelled-outputR Documentation

Labelled vector output

Description

Labelled vector output

Value

A tibble, data frame variant with nice defaults.

Variable labels are stored in the "label" attribute of each variable. It is not printed on the console, but the RStudio viewer will show it.

Value labels are preserved with the labelled() class. Labelled vectors are an intermediate representation that preserves the original value labels, not a regular R factor. Convert labelled categorical variables with as_factor(), or remove value labels with zap_labels() if you need plain R vectors for analysis. See vignette("semantics") for more details.

The data frame and each variable also carry metadata read from the file; access it with meta(). See meta_var_sas(), meta_var_spss(), and meta_var_stata() for the format-specific fields.


haven documentation built on Dec. 2, 2026, 5:08 p.m.