get_binary: get_binary

Description Usage Arguments Value See Also Examples

View source: R/get_binary.R

Description

Identify binary variables from a data frame of mixed variable types
Comparison operator used is =
NA values do not contribute to level counts

Usage

1
get_binary(df, lev = 2)

Arguments

df

data frame of mixed variable types

lev

number of levels desired

Value

data frame containing only ID and variables with the number of levels specified

See Also

Other filter functions: colfilter, get_categorical, get_check, get_continuous, min_cat_n, min_n, remove_incomplete_obs, remove_outliers, rowfilter

Examples

1
2
3
require(NHANES)
data(NHANES)
head(get_binary(NHANES))

HallLab/clarite documentation built on Oct. 27, 2020, 6:27 p.m.