Description Usage Arguments Value
View source: R/refactor.R View source: R/tidyr-extensions.R
A function designed to collect the factor levels
and unique values within a series of columns and combine them into one
vector. This may be useful when trying to construct a table using
htmlTable_td.
| 1 | get_factor_levels(x, cols)
 | 
| x | A dataframe | 
| cols | The columns from which to grab unique values and factor levels | 
| rev | Specifies which columns will have a reversed order | 
Returns a vector of unique values and levels ordered in a manner consistent with the columns from which they were derived.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.