View source: R/standalone-tidy-utils.R
get_value_sets | R Documentation |
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.
get_value_sets(df)
df |
a dataframe to examine |
a list of lists with the column name and the factor levels as list, as a 'checked list'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.