Learn R Programming

gdata (version 3.0.1)

gdata-defunct: Defunct Functions in Package 'gdata'

Description

The functions or variables listed here are no longer part of 'gdata'.

Usage

aggregate.table(x, by1, by2, FUN=mean, ...)

Arguments

x

data to be summarized.

by1

first grouping factor.

by2

second grouping factor.

FUN

a scalar function to compute the summary statistics which can be applied to all data subsets. Defaults to mean.

...

optional arguments for FUN.

Details

aggregate.table(x, by1, by2, FUN=mean, ...) should be replaced by tapply(X=x, INDEX=list(by1, by2), FUN=FUN, ...).