smallest_n_indices: Returns the indices of the n smallest elements in a vector

View source: R/utils.R

smallest_n_indicesR Documentation

Returns the indices of the n smallest elements in a vector

Description

Returns the indices of the n smallest elements in a vector

Usage

smallest_n_indices(x, n = 1L)

Arguments

x

(numeric())
A numeric vector.

n

(numeric(1))
A integer indicating how many elements should be returned


dandls/counterfactuals documentation built on Oct. 21, 2024, 12:40 p.m.