Skip to contents

Reads 'Agilent ChemStation' .csv files.

Usage

read_chemstation_csv(
  path,
  format_out = "matrix",
  data_format = "wide",
  read_metadata = TRUE
)

Arguments

path

Path to 'Agilent' .csv file.

format_out

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

data_format

Whether to return data in wide (default) or long format.

read_metadata

Logical. Whether to attach metadata. Defaults to TRUE. The files record no instrument metadata, so only the settings chromConverter used to parse the file are attached.

Value

A chromatogram in the format specified by format_out 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")
}