spc.setheader-set-list-method: Set a field of the @header slot of a 'SpcList' object

Description Usage Arguments Examples

Description

Function sets or changes the value of a field in the header slot of SpcList object.

Usage

1
2
## S4 replacement method for signature 'list'
spc.setheader(object) <- value

Arguments

object

A SpcList object.

value

Object of class SpcList.

Examples

1
2
3
4
5
6
7
sp=spc.example_spectra()
BL=spc.makeSpcList(sp,"CAST")
a=new("SpcHeader") # create new SpcHeader class
a$Longitude=123 
spc.setheader(BL[[1]]) <- a
h=spc.getheader(BL[[1]])
h

PranaGeo/geoSpectral documentation built on Feb. 21, 2020, 10:22 a.m.