| .calculate_quantiles | R Documentation | 
This function calculates the mean, standard deviation, and specified quantiles for each column in a provided data array.
.calculate_quantiles(
  data_array,
  data_margin = 2,
  quantile_levels = c(min = 0, `2.5%` = 0.025, `25%` = 0.25, median = 0.5, `75%` =
    0.75, `97.5%` = 0.975, max = 1)
)
| data_array | A numeric array where calculations will be performed on each column. The array can be 2D or 3D. | 
| data_margin | An integer that indicates the margin on which to apply the function. Default is 2. | 
| quantile_levels | A named numeric vector of probabilities for which quantiles are required. | 
A data frame with columns for each calculated statistic, including mean, standard deviation, and user-specified quantiles.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.