writeSpectra: Function to write spectra.

Description Usage Arguments Value Author(s) Examples

View source: R/writeSpectra.R

Description

This function accepts spectra in a single spectra.list or spectra.matrix object and writes those spectra to separate files. Currently this function only writes ".dpt" files.

Usage

1
writeSpectra(spectra, filelist = NULL, path = NULL)

Arguments

spectra

An object of class spectra.list containing the spectra to write.

filelist

A vector of full file names, in the same order as the elements of spectra.

path

A string specifying a directory, where all spectra will be written using names(spectra) as file names. Not used with filelist - ignored if filelist is specified.

Value

Writes spectra to files.

Author(s)

Daniel M Griffith

Examples

1
2
3
4
5
## Not run: 
data(shootout)
writeSpectra(spectra = shootout_scans, path = "MY_PATH")

## End(Not run)

griffithdan/plantspec documentation built on May 17, 2019, 8:37 a.m.