plyr (version 1.8.4)

is.discrete: 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

Run this code
# NOT RUN {
is.discrete(1:10)
is.discrete(c("a", "b", "c"))
is.discrete(factor(c("a", "b", "c")))
# }

Run the code above in your browser using DataLab