Learn R Programming

geoSpectral (version 0.17.5)

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

Description

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

Usage

spc.updateheader(object,Name,value,...)

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

# S4 method for 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

Run this code
# NOT RUN {
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

# }

Run the code above in your browser using DataLab