is.unordered: Check for unordered factor

View source: R/unordered.R

is.unorderedR 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

contrastable documentation built on Oct. 1, 2024, 5:07 p.m.