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)

Arguments

file

(character): The file name to import. See "file" argument in readJDX::readJDX().

SOFC

(logical): "Stop on Failed Check". See "SOFC" argument in readJDX::readJDX().

debuglevel

(integer): The level of debug reporting desired. See "debug" argument in readJDX::readJDX().

Value

hyperSpec object.

Author

Sang Truong

Examples

file <- system.file("extdata", "SBO.jdx", package = "readJDX")
spc <- read_jdx(file)
plot(spc)