powered by
Helper to check if a factor is exclusively unordered. is.factor(x) is TRUE when x is unordered OR ordered.
is.unordered(x)
TRUE if x is an unordered factor, FALSE if x is not a factor or is an ordered factor
a vector of data
is.unordered(gl(5,1)) # True is.unordered(gl(5,1,ordered = TRUE)) # False
Run the code above in your browser using DataLab