ORDER {zoo} | R Documentation |
ORDER
is a generic function for computing ordering
permutations.
ORDER(x, ...) ## Default S3 method: ORDER(x, ..., na.last = TRUE, decreasing = FALSE)
x |
an object. |
... |
further arguments to be passed to methods. |
na.last |
for controlling the treatment of NA s.
If TRUE , missing values in the data are put last; if
FALSE , they are put first; if NA , they are removed.
|
decreasing |
logical. Should the sort order be increasing or decreasing? |
ORDER
is a new generic function which aims at providing
the functionality of the non-generic base function order
for arbitrary objects. Currently, there is only a default method which
simply calls order
.
ORDER(rnorm(5))