Read multiple spectral files measured with a Bruker FTIR Instrument. Files
containing spectra are in OPUS binary format.
read_opus_univ
is a wrapper for read_opus_bin_univ()
)
read_opus_univ(fnames, extract = c("spc"), parallel = FALSE,
atm_comp_minus4offset = FALSE)
List of character vectors containing full path names of spectra
Character vector of spectra types to extract from file.
Possible values are: "spc" (AB block in Bruker Opus software), "spc_nocomp"
(Spectra before final atmospheric compensation; only present if background
correction has been set in Opus), "ScSm" (Single channel spectrum of the
sample), "ScRf" (Single channel spectrum of the sample), "IgSm" (Interferogram
of the sample), "IgRf" (Interferogram of the reference). Default is
extract = c("spc")
.
Logical (TRUE
or FALSE
indicating whether
files are read in parallel (multiple processors or multiple cores)).
Default is parallel = FALSE
. If TRUE
a parallel backend needs
to be registered, e.g. by using the doParallel
package.
Logical whether spectra after atmospheric
compensation are read with an offset of -4
bites from Bruker OPUS
files. Default is FALSE
.
out List spectra and metadata (parameters) extracted from Bruker OPUS spectrometer files. List names are the names of the OPUS files whose spectral data were extracted.