is.orderable: If a value can be ordered

Description Usage Arguments Details Value See Also Examples

Description

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

Usage

1

Arguments

x

object to be tested.

Details

x should not be a list; in that case the behavior currently differs between S-PLUS and R.

Value

is.orderable returns a logical vector of the same length as x.

See Also

is.na

Examples

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

splus2R documentation built on May 2, 2019, 5:24 p.m.