read.spc(filename, keys.hdr2data = FALSE, keys.hdr2log = FALSE, keys.log2data = FALSE, keys.log2log = FALSE, log.txt = TRUE, log.bin = FALSE, log.disk = FALSE, hdr = list(), no.object = FALSE)
All header fields specified in the .spc file format specif
Use with care, and look into the source code for detailed insight on the elements of this list.
TRUE, a list with wavelengths, spectra, labels, log and data are returned instead of a hyperSpec object.
This parameter will likely be subject to change in future - use with care.
read.spcreturns a list of hyperSpec objects. Otherwise the result is a hyperSpec object.
read.spc.KaiserMap returns a hyperSpec object with
data columns x, y, and z containing the stage position as
recorded in the .spc files' log.
## get the sample .spc files from ftirsearch.com (see above) # single spectrum spc <- read.spc ("BENZENE.SPC") plot (spc) # multi-spectra .spc file with common wavelength axis spc <- read.spc ('IG_MULTI.SPC') spc # multi-spectra .spc file with individual wavelength axes spc <- read.spc ("BARBITUATES.SPC") plot (spc [], lines.args = list (type = "h"))