This function aggregates information contained in vegtable objects to a summarizing data frame.
This function works in a similar way as crosstable()
.
# S4 method for formula
aggregate(x, data, FUN, use_nas = TRUE, ...)
An object of class data.frame.
A formula indicating the variables used for the summary.
Either a data frame or an object of class vegtable.
Function used to aggregate values.
Logical value indicating whether NA's should be included in categorical variables or not.
Further arguments passed to the function stats::aggregate()
.
Miguel Alvarez kamapu78@gmail.com