Skip to contents

Facet checks (helper)

Usage

check_facet_vec(x, type)

Arguments

x

a vector

type

type of column to return.

Value

TRUE/FALSE if facet variable (< 5 levels)

Examples

require(NHANES)
#> Loading required package: NHANES
#> Warning: there is no package called ‘NHANES’
check_facet_vec(NHANES::NHANES$Education, type = "fct")
#> Error in loadNamespace(x): there is no package called ‘NHANES’
levels(NHANES::NHANES$Education)
#> Error in loadNamespace(x): there is no package called ‘NHANES’
check_facet_vec(NHANES::NHANES$MaritalStatus, type = "fct")
#> Error in loadNamespace(x): there is no package called ‘NHANES’
levels(NHANES::NHANES$MaritalStatus)
#> Error in loadNamespace(x): there is no package called ‘NHANES’