add_quantile: Add quantile

View source: R/add_quantile.R

add_quantileR Documentation

Add quantile

Description

Calculate single quantile for a dataset. Useful if wanting to filter below a certain threshold of values, ie lowest 1

Usage

add_quantile(df, variable = "value", percent = 0.01, na.rm = FALSE)

Arguments

df

Data frame

variable

Variable to calculate quantile for

percent

Quantile to calculate

na.rm

Should NAs be removed?

Value

Tibble

Author(s)

Shona Wilde & Stuart Grange


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