Import JCAMP-DX files to hyperSpec
objects.
Uses the readJDX() function in package readJDX.
See the vignettes there for much more information:
browseVignettes("readJDX")
.
read_jdx(file = stop("filename is needed"), SOFC = TRUE, debuglevel = 0)
(character): The file name to import.
See "file" argument in readJDX::readJDX()
.
(logical): "Stop on Failed Check".
See "SOFC" argument in readJDX::readJDX()
.
(integer): The level of debug reporting desired.
See "debug" argument in readJDX::readJDX()
.
hyperSpec object.
file <- system.file("extdata", "SBO.jdx", package = "readJDX")
spc <- read_jdx(file)
plot(spc)