Skip to contents

Converts a single chromatogram from MassHunter .sp format to R data.frame.

Usage

sp_converter(
  path,
  format_out = c("matrix", "data.frame", "data.table"),
  data_format = c("wide", "long"),
  read_metadata = TRUE,
  metadata_format = c("chromconverter", "raw")
)

Arguments

path

Path to file

format_out

Class of output. Either matrix, data.frame, or data.table.

data_format

Whether to return data in wide or long format.

read_metadata

Logical. Whether to read metadata and attach it to the chromatogram.

metadata_format

Format to output metadata. Either chromconverter or raw.

Value

A chromatogram in data.frame format (retention time x wavelength).

Details

Uses the Aston file parser.