powered by
is.orderable(x)
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