mat_df_trim_quant: Trim a df by quantiles

Description Usage Arguments Examples

View source: R/data.R

Description

Trim a df by quantiles

Usage

1
2
3
4
5
6
7
8
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

1
mat_df_trim_quant(iris, Petal.Width, Species)

MatthieuStigler/matPkg documentation built on Aug. 10, 2021, 11:01 a.m.