saveSpectra {spectralAnalysis} | R Documentation |
read or save a SpectraInTime-class
from or to a .txt
file
Description
read or save a SpectraInTime-class
from or to a .txt
file
Usage
saveSpectra(object, directory, precision = 32)
readSpectra(file)
Arguments
object |
object to save |
directory |
directory to save object |
precision |
number of significant digits controlling precission |
file |
to be read |
Value
the path to which the file is saved
Note
experiment name is used to save the experiment
default time formats are assumed to convert to SpectraInTime-class
some data precession is lost because of internal conversion to JSON format
Author(s)
Adriaan Blommaert
Examples
spectra <- getSpectraInTimeExample()
saveSpectra( spectra , directory )
experimentName <- getExperimentName( spectra )
file <- file.path( directory , paste0( experimentName , ".txt") )
spectraRead <- readSpectra( file )
[Package spectralAnalysis version 4.3.3 Index]