powered by
Calculate summary statistics from a <data.frame> by group. Currently supports the mean, median and standard deviation.
<data.frame>
calc_summary_stats(samples, summarise_by = NULL)
A data.table containing the upper and lower bounds for the specified credible interval
A data.table containing at least a value variable
A character vector of variables to group by.
samples <- data.frame(value = 1:10, type = "car") # default calc_summary_stats(samples) # by type calc_summary_stats(samples, summarise_by = "type")
Run the code above in your browser using DataLab