labels_df: Create a data frame of the variable labels

View source: R/labels_df.R

labels_dfR Documentation

Create a data frame of the variable labels

Description

Create a data frame of the variable labels

Usage

labels_df(df)

Arguments

df

A data frame imported from SPSS using 'haven::read_sav()'

Value

A data frame with 2 columns, listing the names of the variables and the corresponding labels from the metadata.

Examples

gss_data <- haven::read_sav(system.file("extdata", "GSS2016.sav", package = "havenmisc"))
labels_df(gss_data)

philstraforelli/havenmisc documentation built on July 3, 2023, 9:53 a.m.