R/survAUC_utils.R

Defines functions my.sort

#' @noRd
my.sort <- function(x, index.return = FALSE, decreasing = FALSE) {
  if (decreasing) {
    x <- -x
  }
  y <- sort(x, method = "quick", index.return = index.return)
  if (decreasing) {
    y$x <- -y$x
  }
  y
}

Try the hdnom package in your browser

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

hdnom documentation built on April 24, 2023, 9:09 a.m.