Description Usage Arguments Details Value Examples
Given the path to a folder of Ocean Optics SpectraSuite "text with header" files, ending in '*.txt'
, this function will parse all files returning a hyperSpec object that includes the spectra and metadata
1 | read.txt.OceanOptics(files = "*.txt", label = list(spc = "DN (counts)"))
|
files |
A specific file path or list of file paths. Default is select all text files in working directory |
label |
A list of form |
At present only "text with header" format is supported, however further formats maybe added.
A hyperSpec object including a matrix of spectra, metadata extracted from the spectra headers and file information
1 2 3 4 5 6 | # set path to data files
file.path <- system.file("extdata", package = "FASTSpectra")
# parse spectra into hyperSpec object
dn <- read.txt.OceanOptics(files=paste0(file.path,"/*.txt"))
summary(dn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.