Description Usage Arguments Value Author(s) See Also Examples
View source: R/fluxEstimates.R
Omit the data within lag-time and normalize times to start after lag
1 2 3 | selectDataAfterLag(ds, colConc = "CO2_dry", colTime = "TIMESTAMP",
tLagFixed = NA, maxLag = 50, tLagInitial = 10,
minTimeDataAfterBreak = 30, minTLag = 0)
|
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 |
A list with entries
lagIndex |
the index of the end of the lag period |
ds |
the dataset ds without the lag-period (lagIndex included) |
Thomas Wutzler, Oscar Perez Priego
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.