dict_from_data: Get item code-label dictionary from data

View source: R/barplot.R

dict_from_dataR Documentation

Get item code-label dictionary from data

Description

Item labels have to be stored as variable attribute label. Exported by default by ls_export(), but many data wrangling operations strip them out, unfortunately.

Usage

dict_from_data(.data)

Arguments

.data

data.frame or tibble

Value

named character vector of items' labels, if no label found, NULL is introduced and is omitted in the output


scholaempirica/reschola documentation built on Oct. 16, 2024, 6:43 a.m.