A discrete vector is a factor or a character vector
is.discrete(x)
x
Hadley Wickham <h.wickham@gmail.com>
is.discrete(1:10) is.discrete(c("a", "b", "c")) is.discrete(factor(c("a", "b", "c")))