powered by
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)
grouped_stats(x, n, compute = c("mean", "fine", "coarse"), tol = 1e-06)
dgrouped(x, n, compute = c("mean", "fine", "coarse"), tol = 1e-06)
A list with the class, result and a table.
numeric: borders
numeric: absolute frequencies for each group
numeric/character: coefficient to compute
numeric: tolerance for numerical comparison
x <- 1:4 n <- ddiscrete(runif(3)) grouped_data(x, n)
Run the code above in your browser using DataLab