write.leafopt {fluspect}R Documentation

write.leafopt

Description

write.leafopt writes the leafopt object as text files

Usage

write.leafopt(leafopt, path, digits = 5)

Arguments

leafopt

List. Spectral object generated with fluspect

path

String. Output path. If the directory does not exist, a new one will be created.

digits

Integer. (Optional) Number of digits (by default 5)

Details

It always writes the text files in UNIX format, under the specified output path. It will override if files already exists. The output filenames are:

Author(s)

Alberto Hornero

Examples

leafbio <- data.frame(Cab = 70, Cca = 30, Cw = 0.013, Cdm = 0.024, Cs = 0.0, N = 4.09, fqe = 0.02)
leafopt <- fluspect(leafbio)
write.leafopt(leafopt, path = file.path(tempdir(), 'output'))


[Package fluspect version 1.0.0 Index]