standardize_finaltable: Standardize finaltable by amount or row total

View source: R/standardize_finaltable.R

standardize_finaltableR Documentation

Standardize finaltable by amount or row total

Description

Divides peak areas by the amount (biomass, counts) of each floral sample in metadata, or by the sample sum to create percentages.

Usage

standardize_finaltable(finaltable, metadata, percent = FALSE)

Arguments

finaltable

the wide data frame with samples in rows and compound names in columns, containing peak areas for floral samples only

metadata

the data frame that contains meta data about the group, type, and other attributes of each sample

percent

if TRUE, divide by row sums instead of amount

Value

finaltable

Examples

data(GCMSfloral)
standardize_finaltable(finaltable, metadata, percent = FALSE)

jmpowers/bouquet documentation built on Feb. 12, 2023, 12:11 a.m.