is.discrete: Determine if a vector is discrete.

View source: R/utils.r

is.discreteR Documentation

Determine if a vector is discrete.

Description

A discrete vector is a factor or a character vector

Usage

is.discrete(x)

Arguments

x

vector to test

Examples

is.discrete(1:10)
is.discrete(c("a", "b", "c"))
is.discrete(factor(c("a", "b", "c")))

plyr documentation built on Oct. 2, 2023, 9:07 a.m.