get_labels_from_dataset: Return variable labels from a dataset

View source: R/read_datasets.R

get_labels_from_datasetR Documentation

Return variable labels from a dataset

Description

Returns variable labels stored as "label" attribute.

Usage

get_labels_from_dataset(data, return_all = TRUE)

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.

Value

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


ropensci/rdhs documentation built on April 5, 2024, 11:50 a.m.