R/tickControl.R

Defines functions tickControl

#' Tick Control
#' @noRd
tickControl <- function(id, max.tick = 50) {
  if (length(id) <= max.tick) {
    return(id)
  } else {
    incre <- ceiling(length(id) / max.tick)
    return(id[seq_along(id) %% incre == 1])
  }
}

Try the giniCI package in your browser

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

giniCI documentation built on April 3, 2025, 7:35 p.m.