Skip to contents

Returns a data.frame in long format with one row per data point and columns rtime, intensity and index. index is a factor with the position of the chromatogram within x (seq_along(x)) and uniquely identifies each chromatogram.

To add additional chromatogram variables (e.g. "mz") request them through the chromVariables parameter.

Usage

# S3 method for class 'Chromatograms'
as.data.frame(
  x,
  row.names = NULL,
  optional = FALSE,
  chromVariables = character(),
  ...
)

Arguments

x

Chromatograms object.

row.names

optional row names for the returned data.frame. Must be equal to the number of rows in the returned data.frame.

optional

currently ignored; present for consistency with the base generic.

chromVariables

character with the names of additional chromatogram variables (available in chromVariables(x)) to be added as columns from chromData(x).

...

currently ignored.

Author

Gabriele Tomè