Skip to contents

Dump column labels to dataframe (internal)

Usage

dump_labels(data, attr = c("label", "shortlabel"), file = NULL)

Arguments

data

Data frame with (optionally) labelled columns.

attr

Which label attribute to extract; one of "label" or "shortlabel".

file

Optional file path; if provided, writes a CSV to that path.

Value

A data frame with columns var and label.