View source: R/tab_functions.R
tab_varlabs | R Documentation |
Create a variable label dataframe
tab_varlabs(df)
df |
Labelled dataframe, e.g., resulting of the read_sav / read_dta functions of the package haven. |
Dataframe consisting of two columns var
and varlab
,
showing all variable labels in df
.
# load spss data path <- system.file("examples", "iris.sav", package = "haven") df <- haven::read_sav(path) attr(df$Sepal.Width, "label") <- "width of the sepal" tab_varlabs(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.