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

Description Usage Arguments Examples

Description

Time align first object, using info in the second object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 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 June 12, 2018, 5:04 p.m.