powered by
Decide whether a vector can be treated as a numeric variable
is.mynumeric(x, maxy.lev = 5)
A logical value
A vector
An integer indicating the maximum number of unique values of a numeric variable be treated as a categorical variable
x=1:5 is.mynumeric(x) x=1:13 is.mynumeric(x)
Run the code above in your browser using DataLab