spectralAnalysis (version 3.12.0)

saveSpectra: save a SpectraInTime-class as a .txt file

Description

save a SpectraInTime-class as 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

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
  spectra         <-  getSpectraInTimeExample()
 saveSpectra(  spectra , directory )
 experimentName  <-  getExperimentName( spectra )
 file            <-  file.path( directory , paste0( experimentName , ".txt")  )
 spectraRead     <-  readSpectra( file )
 
# }

Run the code above in your browser using DataLab