spectralAnalysis (version 4.3.3)

saveSpectra: 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)

Value

the path to which the file is saved

SpectraInTime-class

Arguments

object

object to save

directory

directory to save object

precision

number of significant digits controlling precission

file

to be read

Author

Adriaan Blommaert

Examples

Run this code
   directory       <-  tempdir()  
 spectra         <-  getSpectraInTimeExample()
 saveSpectra(  spectra , directory )
 experimentName  <-  getExperimentName( spectra )
 file            <-  file.path( directory , paste0( experimentName , ".txt")  )
 spectraRead     <-  readSpectra( file )
  unlink( directory ) 

Run the code above in your browser using DataLab