Skip to contents

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 automcomplete) 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.