If a value can be ordered

Description

is.orderable() returns !is.na()

Usage

1

Arguments

x

object to be tested

Details

is.orderable(x) works elementwise when x is a list.

Value

is.orderable returns a logical vector of the same attribute as its argument x

Author(s)

Knut M. Wittkowski kmw@rockefeller.edu

See Also

is.na

Examples

1
2
3
x <- c(1, 4, NA, 0, 5)
is.orderable(x)
# [1]  TRUE  TRUE FALSE  TRUE  TRUE