timeAlign {spectralAnalysis} | R 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 |
cutBeforeMinTemp |
logical indicator if |
timeFormat |
character vector specifying time format |
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" )
[Package spectralAnalysis version 4.3.3 Index]