Description Usage Arguments Value See Also Examples
View source: R/get_categorical.R
Identify categorical variables from a data frame of mixed variable types
Comparison operators used are <= and >=
NA values do not contribute to level counts
1 | get_categorical(df, lower = 3, upper = 6)
|
df |
data frame of mixed variable types |
lower |
minimum number of unique values to be considered categorical |
upper |
maximum number of unique values to be considered categorical |
data frame containing only ID and variables meeting the criteria
Other filter functions: colfilter
,
get_binary
, get_check
,
get_continuous
, min_cat_n
,
min_n
, remove_incomplete_obs
,
remove_outliers
, rowfilter
1 2 3 | require(NHANES)
data(NHANES)
head(get_categorical(NHANES))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.