This function summarizes abundance data based on specified groups.
abundance.summary(
data,
group,
istotal = FALSE,
.summary = function(x) mean(x),
.error = function(x) sd(x)
)
A data frame summarizing abundance data by species, group, lipid type, carbon number, and unsaturation.
The data frame containing abundance data.
A vector specifying the group membership for each sample.
Logical. If is true, the total summary table of lipid type, carbon number and unsaturation rate will be generated.
A function to summarize abundance data within each group (default is mean).
A function to compute error measures within each group (default is standard deviation).