slice_min_max: Slice min and max rows

View source: R/slice_min_max.R

slice_min_maxR Documentation

Slice min and max rows

Description

Select rows of highest and lowest values based on variables

Usage

slice_min_max(df, order_by = value, n = 1)

Arguments

df

data

order_by

variable to order by

n

number of rows to select, default is 1

Value

tibble

Author(s)

Shona Wilde


shonawilde/shonarrr documentation built on Jan. 29, 2025, 1:27 a.m.