selectDataAfterLag: selectDataAfterLag

Description Usage Arguments Value Author(s) See Also Examples

View source: R/fluxEstimates.R

Description

Omit the data within lag-time and normalize times to start after lag

Usage

1
2
3
selectDataAfterLag(ds, colConc = "CO2_dry", colTime = "TIMESTAMP", 
    tLagFixed = NA, maxLag = 50, tLagInitial = 10, 
    minTimeDataAfterBreak = 30, minTLag = 0)

Arguments

ds

a tibble or data.frame with time and concentration columns

colConc

column name of CO2 concentration per dry air [ppm]

colTime

column name of time column [s]

tLagFixed

possibility to specify the lagTime (in seconds) instead of estimating them

maxLag

number of initial records to be screened for a breakpoint, i.e. the lag

tLagInitial

the initial estimate of the length of the lag-phase

minTimeDataAfterBreak

number of minimum time (in seconds) left after breakpoint

minTLag

possibility to specify a minimum lag-time in seconds

Value

A list with entries

lagIndex

the index of the end of the lag period

ds

the dataset ds without the lag-period (lagIndex included)

Author(s)

Thomas Wutzler, Oscar Perez Priego

See Also

RespChamberProc

Examples

1
2
3
4
5
6
7
#data(chamberLoggerEx1s)
ds <- chamberLoggerEx1s
ds$CO2_dry <- corrConcDilution(ds)
#trace(selectDataAfterLag,recover)	#untrace(selectDataAfterLag)
ret <- selectDataAfterLag(ds)
plot( ds$CO2_dry)
abline(v=ret$lagIndex, col="red")

RespChamberProc documentation built on May 2, 2019, 5:53 p.m.