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
}
road2stat/hdnom documentation built on March 14, 2024, 11:10 p.m.