mat_df_trim_quant: Trim a df by quantiles

View source: R/data.R

mat_df_trim_quantR Documentation

Trim a df by quantiles

Description

Trim a df by quantiles

Usage

mat_df_trim_quant(
  df,
  .value_var,
  ...,
  .probs = c(0.02, 0.98),
  na.rm = TRUE,
  .rem_quants = TRUE
)

Arguments

df

The df

.value_var

the column of values

.probs

quantile probs

na.rm

Remove NA when computing quantile?

.rem_quants

remove the quantile (i.e. trim only)?

...

the group_by variables

Examples

mat_df_trim_quant(iris, Petal.Width, Species)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.