get_value_sets: Get a value set list of a dataframe

View source: R/standalone-tidy-utils.R

get_value_setsR Documentation

Get a value set list of a dataframe

Description

This function examines a dataframe and returns a list of the columns with sub-lists as all the options for factors. This provides programmatic access (and autocomplete) to the values available in a dataframe, and throws and early error if we try and access data by a variable that does not exist.

Usage

get_value_sets(df)

Arguments

df

a dataframe to examine

Value

a list of lists with the column name and the factor levels as list, as a 'checked list'.


terminological/ggrrr documentation built on June 15, 2024, 6:35 a.m.