is_categorical: Check if x$data is a categorical variable

Description Usage Arguments

View source: R/is.R

Description

Check if x$data is a categorical variable

Usage

1
2
is_categorical(x, min_unq = 0, max_unq = Inf, max_na = 0.9,
  least_freq_cls = 0)

Arguments

x

List with data, result, and any errors already found

min_unq

Minimum number of unique classes x$data can have

max_unq

Maximum number of unique classes x$data can have

max_na

Fraction of x$data that can be NA

least_freq_cls

Minimum fraction of total represented by least frequent class


ctlente/doctr documentation built on May 12, 2017, 1:24 p.m.