Learn R Programming

geoSpectral (version 0.17.5)

spc.getheader,list-method: Extract a field of the @header slot of a SpcList object

Description

Extracts the value of a field in the header slot of SpcList object

Usage

# S4 method for list
spc.getheader(object, name)

Arguments

object

A SpcList object

name

of the header field to be extracted

Examples

Run this code
# NOT RUN {
sp=spc.example_spectra()
BL = spc.makeSpcList(sp,"CAST")
BL[[1]]@header
spc.getheader(BL,"CAST")

# }

Run the code above in your browser using DataLab