is.unordered {contrastable} | R Documentation |
Check for unordered factor
Description
Helper to check if a factor is exclusively unordered. is.factor(x) is TRUE when x is unordered OR ordered.
Usage
is.unordered(x)
Arguments
x |
a vector of data |
Value
TRUE if x is an unordered factor, FALSE if x is not a factor or is an ordered factor
Examples
is.unordered(gl(5,1)) # True
is.unordered(gl(5,1,ordered = TRUE)) # False
[Package contrastable version 1.0.2 Index]