ir_import_csv {ir} | R Documentation |
Imports infrared spectra from various files
Description
ir_import_csv
imports raw infrared spectra from one or more .csv
file
that contains at least one spectrum, with x axis values (e.g. wavenumbers) in
the first column and intensity values of spectra in remaining columns. Note
that the function does not perform any checks for the validity of the content
read from the .csv file.
Usage
ir_import_csv(filenames, sample_id = "from_filenames", ...)
Arguments
filenames |
A character vector representing the complete paths to
the |
sample_id |
Either:
|
... |
Further arguments passed to
|
Value
An object of class ir
containing the
infrared spectra extracted from the .csv
file(s).
Examples
# import data from csv files
d <- ir::ir_import_csv(
system.file(package = "ir", "extdata/klh_hodgkins_mir.csv"),
sample_id = "from_colnames")