subset-methods: Subsetting 'SpectraInTime-class'

subset-methodsR Documentation

Subsetting SpectraInTime-class

Description

Subsetting SpectraInTime-class

Usage

## S4 method for signature 'SpectraInTime,ANY,ANY'
x[i, j, ..., drop = ""]

## S4 method for signature 'SpectraInTime,missing,ANY'
x[i, j, ..., drop = ""]

## S4 method for signature 'SpectraInTime,ANY,missing'
x[i, j, ..., drop = ""]

## S4 method for signature 'SpectraInTime,missing,missing'
x[i, j, ..., drop = ""]

## S4 method for signature 'SpectraInTimeComp,ANY,ANY'
x[i, j, ..., drop = ""]

## S4 method for signature 'SpectraInTimeComp,missing,ANY'
x[i, j, ..., drop = ""]

## S4 method for signature 'SpectraInTimeComp,ANY,missing'
x[i, j, ..., drop = ""]

Arguments

x

object to subset

i

subsetting rows ( timePoints )

j

subsetting columns ( spectral axis )

...

additional parameters

  • timeUnit unit at which subsetting should be done choose between seconds , minutes or hours defaults to seconds

  • timePointsAlt logical indicators whater alternative timePoints should be used

drop

for consistancy, not used

Value

SpectraInTime-class

Examples

 ### subsetting [ time , spectral axis, options ]

 spectralEx                <-  getSpectraInTimeExample()
 spectraSubset             <-  spectralEx[ r( 1000 , 30000 ) , r(130 , 135 ) ]
 spectraSubsetTime         <-  spectralEx[ r( 1000 , 30000 ) ,  ]
 spectraSubsetSpectralVals  <-  spectralEx[  ,  r(130 , 135 ) ]
 spectraSubsetHours        <-  spectralEx[ r( 1 , 3 ) , r(130 , 135 ) , timeUnit = "hours" ]
 closestSpectralVals        <-  spectralEx[ , e( 150, 4, 300, 500 ) ] # remark only unique values 
 spectraSubsetLogical      <-  spectralEx[ getTimePoints( spectralEx ) > 300   ,
 getSpectralAxis( spectralEx ) <= 500 ]

spectralAnalysis documentation built on Jan. 11, 2023, 5:15 p.m.