mosaic (version 1.1.0)

mm: Defunct modeling function

Description

The function has been removed from mosaic.

Usage

mm(formula, data = parent.frame(), fun = mean, drop = TRUE, ...)

Arguments

formula

A formula. The left-hand side specifies the variable over which the mean will be taken. The right-hand side gives the grouping variables, separated by &.

data

A data frame to which the formula variables refer. If not specified, variables will be taken from the current environment.

fun

The function used to calculate the means. Default: mean.

drop

Logical flag indicating whether to drop unoccupied groups. Default TRUE. NOT YET IMPLEMENTED.

Additional arguments to be passed to the fun doing the calculation.