var_min: Return the indices of n min values of a variable

Description Usage Arguments Examples

View source: R/splits.R

Description

Return the indices of n min values of a variable

Usage

1
var_min(var, n = 6, value = FALSE)

Arguments

var

the variable to use.

n

number of rows to return.

value

if FALSE, a vector containing the (integer) indices is returned, and if TRUE, a vector containing the elements themselves is returned.

Examples

1
var_min(1:10)

daranzolin/hacksaw documentation built on April 14, 2021, 6:32 a.m.