Description Usage Arguments Examples
Updates or changes the value of a field in the header slot of Spectra
object
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)
|
object |
A |
Name |
of the header field to be updated |
value |
to update header with |
... |
arguments to be passed to or from other methods |
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.