timeAlign: Time align first object, using info in the second object

timeAlignR Documentation

Time align first object, using info in the second object

Description

Time align first object, using info in the second object

Usage

timeAlign(x, y, ...)

## S4 method for signature 'SpectraInTime,ProcessTimes'
timeAlign(x, y, cutCooling = FALSE, cutBeforeMinTemp = FALSE)

## S4 method for signature 'list,ProcessTimesFrame'
timeAlign(x, y, cutCooling = FALSE, cutBeforeMinTemp = FALSE)

## S4 method for signature 'list,character'
timeAlign(
  x,
  y,
  cutCooling = FALSE,
  cutBeforeMinTemp = FALSE,
  timeFormat = "%Y-%m-%d %H:%M:%S"
)

Arguments

x

and S4 object to be aligned

y

object to use time information from

...

additional arguments

cutCooling

logical indicator if TRUE observation after cooling starts are cut off, defaults to FALSE

cutBeforeMinTemp

logical indicator if TRUE observation before minimum temperature are cut off, defaults to FALSE

timeFormat

character vector specifying time format as.POSIXct

Value

SpectraInTime-class or list of spectra depending on input

Examples


 spectra             <-  getSpectraInTimeExample()
 listOfSpectra       <-  getListOfSpectraExample()
 processTimes        <-  getProcessTimesExample()
 processTimesFrame   <-  getProcessTimesFrameExample()
 pathProcessTimes    <-  getPathProcessTimesExample()
  
ex1  <-  timeAlign( x = spectra , y = processTimes ,
 cutCooling = TRUE , cutBeforeMinTemp = TRUE )
ex2  <-  timeAlign( x = listOfSpectra , y = processTimesFrame ,
 cutCooling = TRUE , cutBeforeMinTemp = TRUE )
ex3  <-  timeAlign( x = listOfSpectra , y = pathProcessTimes, 
 cutCooling = TRUE , cutBeforeMinTemp = TRUE  , timeFormat =  "%Y-%m-%d %H:%M:%OS" )

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