cash-SpcList-method: Extract or replace parts of a 'SpcList' object

Description Usage Arguments Examples

Description

Operators acting on Spectra objects to extract or replace parts

Usage

1
2
## S4 method for signature 'SpcList'
x$name

Arguments

x

A Spectra object from which to extract element(s) or in which to replace element(s)

name

A character (column name)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  sp<-spc.example_spectra()
  BL = spc.makeSpcList(sp,"STATION")
  
  #Extract station 394 (returns Spectra object)
  BL$`394`
  
  BL@by="CRUISE"
  BL[[1]]$CRUISE="Cruise1"
  BL[[2]]$CRUISE="Cruise2"
  BL[[3]]$CRUISE="Cruise3"
  BL[[4]]$CRUISE="Cruise4"
  names(BL)
  BL$Cruise4

PranaGeo/Spectral documentation built on Feb. 21, 2020, 12:36 p.m.