R/summarise_long_df.R
summarise_long_df.RdSummary 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)
)Dataframe in long format
Character. Group values in long_df by this column name. Can
be NULL to summarise the entire long_df
Character. Name of column in long_df with the values to
summarise
Character. Any extra columns in long_df to group by.
Numeric. Passed to the q argument of stats::quantile() (via
envFunc::quibble())
tibble of summarised values with one row for: each unique value in
name_col; and, if supplied, the combination with group_cols.