powered by
A discrete vector is a factor or a character vector
is.discrete(x)
vector to test
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