Learn R Programming

rdhs (version 0.8.1)

get_labels_from_dataset: Return variable labels from a dataset

Description

Returns variable labels stored as "label" attribute.

Usage

get_labels_from_dataset(data, return_all = TRUE)

Value

A data.frame consisting of the variable name and labels.

Arguments

data

A data.frame from which to extract variable labels.

return_all

Logical whether to return all variables (TRUE) or only those with labels.