grouped_data | R Documentation |
Computes mean, mode or quantile/median of grouped data.
grouped_data(x, n, compute = c("mean", "fine", "coarse"), tol = 1e-06)
grouped_stats(x, n, compute = c("mean", "fine", "coarse"), tol = 1e-06)
dgrouped(x, n, compute = c("mean", "fine", "coarse"), tol = 1e-06)
x |
numeric: borders |
n |
numeric: absolute frequencies for each group |
compute |
numeric/character: coefficient to compute |
tol |
numeric: tolerance for numerical comparison |
A list with the class, result and a table.
x <- 1:4
n <- ddiscrete(runif(3))
grouped_data(x, n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.