Set labels for a data frame

set_labels(dat, label_list)

Arguments

dat

a data frame to apply labels to

label_list

a named list with names matching those of dat and values being labels

Value

data frame with labels attached as attributes (attached to each column and named "label")