Skip to contents

This function creates labels for all <dbl+lbl> columns in data imported from Stata data.

Usage

create_dta_labels(data)

Arguments

data

dataframe . The data file as a dataframe.

Value

dataframe: The data file with labels for all <dbl+lbl> columns.

Note

The function uses the haven package to create the labels and values columns.

The function will only create the labels and values columns if they do not already exist. It will not overwrite existing columns.