Summary functions are: count; max; min; mean; quantiles at each value of qs; count of NA values; and proportion of NA values.

summarise_long_df(
  long_df,
  name_col = "name",
  value_col = "value",
  group_cols = NULL,
  qs = c(0.05, 0.25, 0.5, 0.75, 0.95)
)

Arguments

long_df

Dataframe in long format

name_col

Character. Group values in long_df by this column name. Can be NULL to summarise the entire long_df

value_col

Character. Name of column in long_df with the values to summarise

group_cols

Character. Any extra columns in long_df to group by.

qs

Numeric. Passed to the q argument of stats::quantile() (via envFunc::quibble())

Value

tibble of summarised values with one row for: each unique value in name_col; and, if supplied, the combination with group_cols.