| labelled-output | R Documentation |
Labelled vector output
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.