is.discrete: Identify whether variables are discrete or continuous

Description Usage Arguments Value Author(s)

View source: R/is.discrete.R

Description

Variables are considered discrete if they have fewer unique, non-missing values than cutoff or they are factors. Otherwise, variables are considered continuous.

Usage

1
is.discrete(data, cutoff = 10)

Arguments

data

A data frame, matrix or vector of values to be evaluated.

cutoff

A numeric scalar identifying the cutoff relative to the number of unique, non-missing values for ‘discreteness’.

Value

A logical vector indicating whether variables are discrete (TRUE) or continuous FALSE.

Author(s)

Skyler Cranmer, Jeff Gill, Natalie Jackson, Andreas Murr and Dave Armstrong


davidaarmstrong/hot.deck documentation built on April 2, 2020, 4:52 a.m.