splus2R (version 1.2-2)

is.orderable: If a value can be ordered

Description

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

Usage

is.orderable(x)

Arguments

x

object to be tested.

Value

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

Details

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

See Also

is.na

Examples

Run this code
# NOT RUN {
x <- c(1, 4, NA, 0, 5)
is.orderable(x)
# [1]  TRUE  TRUE FALSE  TRUE  TRUE
# }

Run the code above in your browser using DataLab