get_factor_levels: Combine the levels or unique values of multiple columns into...

Description Usage Arguments Value

View source: R/supplemental_functions.R

Description

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.

Usage

1

Arguments

x

A dataframe

cols

The columns from which to grab unique values and factor levels

rev

Specifies which columns will have a reversed order

Value

Returns a vector of unique values and levels ordered in a manner consistent with the columns from which they were derived.


graggsd/tidyhTbl documentation built on May 28, 2019, 8:54 p.m.