Skip to contents

Reads 'Agilent Chemstation' .csv files.

Usage

read_chemstation_csv(
  path,
  format_out = c("matrix", "data.frame", "data.table"),
  data_format = c("wide", "long"),
  read_metadata = TRUE
)

Arguments

path

Path to 'Agilent' .csv file.

format_out

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

data_format

Either wide (default) or long.

read_metadata

Logical. Whether to attach metadata. Defaults to TRUE. There is no instrumental metadata saved in the CSV files so this will only attach metadata about the settings used by chromConverter to parse the file.

Value

A chromatogram in the format specified by format_out (retention time x wavelength) and data_format.

Details

'Agilent Chemstation' CSV files are encoded in UTF-16.

Author

Ethan Bass

Examples

if (FALSE) { # interactive()
read_chemstation_csv("tests/testthat/testdata/dad1.csv")
}