spectralAnalysis (version 3.12.0)

timeAlign: 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 SpectraInTime,ProcessTimes timeAlign(x, y, cutCooling = FALSE, cutBeforeMinTemp = FALSE)

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

# S4 method for 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

Examples

Run this code
# NOT RUN {
 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" )
# }

Run the code above in your browser using DataLab