R/k_min_vals_vec_idx.R

Defines functions k_min_vals_vec_idx

#' @keywords internal
#' @noRd

# Identifies the indices of the first (minimum) k values in a vector x
k_min_vals_vec_idx <- function(x,k) {
  sort.int(x, index.return = T)$ix[1:k]
}

Try the ARPALData package in your browser

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

ARPALData documentation built on Sept. 26, 2023, 5:07 p.m.