Learn R Programming

muStat (version 1.7.0)

is.orderable: If a value can be ordered

Description

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

Usage

is.orderable(x)

Arguments

x
object to be tested

Value

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

Details

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

See Also

is.na

Examples

Run this code
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