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

Description Usage Arguments Value Note Author(s) Examples

View source: R/saveSpectraInTime.R

Description

save a SpectraInTime-class as a .txt file

Usage

1
2
3
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

1
2
3
4
5
6
7
   
  spectra         <-  getSpectraInTimeExample()
 saveSpectra(  spectra , directory )
 experimentName  <-  getExperimentName( spectra )
 file            <-  file.path( directory , paste0( experimentName , ".txt")  )
 spectraRead     <-  readSpectra( file )
 

spectralAnalysis documentation built on June 12, 2018, 5:04 p.m.