grouped_data: grouped_data

View source: R/grouped_data.R

grouped_dataR Documentation

grouped_data

Description

Computes mean, mode or quantile/median of grouped data.

Usage

grouped_data(x, n, compute = c("mean", "fine", "coarse"), tol = 1e-06)

Arguments

x

numeric: borders

n

numeric: absolute frequencies for each group

compute

numeric/character: coefficint to compute

tol

numeric: tolerance for numerical comparison

Value

a list with the class, result and a table

Examples

x <- 1:4
n <- ddiscrete(runif(3))
grouped_data(x, n)

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.