R/ORDER.R

Defines functions ORDER.times ORDER.timeDate ORDER.default ORDER

Documented in ORDER ORDER.default

ORDER <- function(x, ...)
  UseMethod("ORDER")

ORDER.default <- function(x, ..., na.last = TRUE, decreasing = FALSE)
  order(x, ..., na.last = na.last, decreasing = decreasing)

ORDER.timeDate <- function(x, ...) {
  order(as.POSIXct(x), ...)
}

ORDER.chron <- ORDER.dates <- ORDER.times <- function(x, ...) {
  order(as.numeric(x), ...)
}

Try the zoo package in your browser

Any scripts or data that you put into this service are public.

zoo documentation built on April 14, 2023, 12:39 a.m.