get_df_quantiles: get_df_quantiles get quanitles from a data.frame for...

View source: R/get_df_quantiles.R

get_df_quantilesR Documentation

get_df_quantiles get quanitles from a data.frame for 'y_value', grouped by group_vars using purrr and dplyr

Description

get_df_quantiles get quanitles from a data.frame for 'y_value', grouped by group_vars using purrr and dplyr

Usage

get_df_quantiles(df, group_vars, y_value, quants = c(0.025, 0.5, 0.975))

Arguments

df

a dataframe with columns in group_vars and y_value

group_vars

a vector of strings specifying the grouping variables

y_value

a string specifying the column to calculate the quanitles for

quants

numeric vector of values between 0-1 which define the quantiles to calculate.

Value

a dataframe of quantiles


Craig44/stockassessmenthelper documentation built on April 14, 2023, 10:57 a.m.