sp_converter: Converter for 'Agilent MassHunter' UV files

View source: R/call_aston.R

sp_converterR Documentation

Converter for 'Agilent MassHunter' UV files

Description

Converts a single chromatogram from MassHunter .sp format to R data.frame using the Aston file parser.

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).

See Also

Other external parsers: call_entab(), call_openchrom(), call_rainbow(), read_thermoraw(), uv_converter()


ethanbass/chromConverter documentation built on March 29, 2025, 5:22 a.m.