Learn R Programming

geoSpectral (version 0.17.5)

spc.setheader<-: Set a field of the @header slot of a Spectra object

Description

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

Usage

spc.setheader(object) <- value

# S4 method for Spectra spc.setheader(object) <- value

Arguments

object

A Spectra object

value

Object of class SpcHeader

See Also

spc.getheader

Examples

Run this code
# NOT RUN {
sp=spc.example_spectra()
a=new("SpcHeader") # create new SpcHeader class
a$Longitude=123 
spc.setheader(sp) <- a
sp@header

# }

Run the code above in your browser using DataLab