Learn R Programming

vegtable (version 0.1.3)

aggregate: Aggregating information into a data frame.

Description

This function aggregates information contained in '>vegtable objects to a summarizing data frame.

Usage

# S4 method for formula
aggregate(x, data, FUN, use_nas=TRUE, ...)

Arguments

x

A formula indicating the variables used for the summary.

data

Either a data frame or an object of class '>vegtable.

FUN

Function used to aggregate values.

use_nas

Logical value indicating whether NA's should be included in categorical variables or not.

...

Further arguments passed to the function aggregate.

Value

An object of class data.frame.

Details

This function works in a similar way as crosstable.

See Also

aggregate.

Examples

Run this code
# NOT RUN {
## Example follows
# }

Run the code above in your browser using DataLab