spc.updateheader: Update a field of the @header slot of a 'Spectra' object

Description Usage Arguments Examples

Description

Updates or changes the value of a field in the header slot of Spectra object

Usage

1
2
3
4
5
6
7
spc.updateheader(object,Name,value,...)

## S4 method for signature 'Spectra'
spc.updateheader(object, Name, value, ...)

## S4 method for signature 'list'
spc.updateheader(object, Name, value)

Arguments

object

A Spectra object

Name

of the header field to be updated

value

to update header with

...

arguments to be passed to or from other methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sp=spc.example_spectra()
sp@header
sp <- spc.updateheader(sp,"Station", 11)
sp@header

#SpcList example
sp=spc.example_spectra()
BL=spc.makeSpcList(sp,"CAST")
BL[[1]]@header
BL[[1]] <- spc.updateheader(BL[[1]],"Station", 11)
BL[[1]]@header

geoSpectral documentation built on Feb. 20, 2020, 5:08 p.m.