average_spectra: Average Spectra Takes a tibble of grouped NORMALIZED spectrum...

View source: R/average_spectra.R

average_spectraR Documentation

Average Spectra Takes a tibble of grouped NORMALIZED spectrum data (multiple spectra per group) returns ion-wise averaged spectra with averaged continuous statistics and nested categorical identifiers. Some reserved column names get special treatment; this should become more generic in the future.

Description

Average Spectra Takes a tibble of grouped NORMALIZED spectrum data (multiple spectra per group) returns ion-wise averaged spectra with averaged continuous statistics and nested categorical identifiers. Some reserved column names get special treatment; this should become more generic in the future.

Usage

average_spectra(spectra, x = "mz")

Arguments

spectra

Grouped tibble with mz/wl and intensity. Should be grouped by clusters to be averaged.

x

Name of x-axis variable (mz or wl, etc.)

Examples

spectra_cons <- spectra_clust %>%
  group_by(clust_id) %>%
  average_spectra()


octopode/tidychrom documentation built on Nov. 2, 2022, 1:32 a.m.