abundance.summary: Summarize Abundance Data

View source: R/abundance.R

abundance.summaryR Documentation

Summarize Abundance Data

Description

This function summarizes abundance data based on specified groups.

Usage

abundance.summary(
  data,
  group,
  istotal = FALSE,
  .summary = function(x) mean(x),
  .error = function(x) sd(x)
)

Arguments

data

The data frame containing abundance data.

group

A vector specifying the group membership for each sample.

istotal

Logical. If is true, the total summary table of lipid type, carbon number and unsaturation rate will be generated.

.summary

A function to summarize abundance data within each group (default is mean).

.error

A function to compute error measures within each group (default is standard deviation).

Value

A data frame summarizing abundance data by species, group, lipid type, carbon number, and unsaturation.


LipidomicsR documentation built on May 29, 2024, 8:59 a.m.