powered by
is.orderable(x) returns !is.na().
is.orderable(x)
!is.na()
is.orderable returns a logical vector of the same length as x.
is.orderable
x
object to be tested.
x should not be a list; in that case the behavior currently differs between S-PLUS and R.
is.na
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