reshape_peaktable: Reshapes peak table from wide to long format

View source: R/reshape_chroms.R

reshape_peaktableR Documentation

Reshapes peak table from wide to long format

Description

Reshapes peak table from wide to long format

Usage

reshape_peaktable(x, peaks, metadata, fixed_levels = TRUE)

Arguments

x

A peak_table object.

peaks

A character vector specifying the peaks to include. If the character vector is named, the names of the vector elements will be used in place of the original peak names.

metadata

A character vector specifying the metadata fields to include.

fixed_levels

Logical. Whether to fix factor levels of features in the order provided. Defaults to TRUE.

Value

A data.frame containing the information for the specified peaks in long format.

Author(s)

Ethan Bass

See Also

Other utility functions: combine_peaks(), get_lambdas(), get_times(), merge_peaks(), reshape_chroms()


ethanbass/chromatographR documentation built on April 17, 2025, 10:55 a.m.