| checkm {flux} | R Documentation |
Bring modelled and measured values together based on timestamp
Description
Trivial function that is a simple wrapper for frequent task: Bringing together the measured and modelled values, for instance to do a posteriori analyses of model performance.
Usage
checkm(modelled, measured, t.unit = NULL)
Arguments
modelled |
A |
measured |
A |
t.unit |
If NULL, data in |
Details
Case 1 (t.unit = NULL) Data are merged by calculating the difference in time between all timestamps in modelled and all timestamps in measured and identifying the minimum difference to each measured flux. If minimum difference between measured and modelled flux > 1h, no modelled flux is assigned. This approach is a bit slower but it is not necessary to give a correct t.unit, which makes it less error prone.
Case 2 (t.unit != NULL) After rounding the timestamps in measured according to t.unit and transforming both timestamnps to character vectors modelled and measured are merged based on these timestamps and only data rows that are present in both are retained. Therefore t.unit has to be specified according to the interval of the timestamps in modelled.
Value
Data.frame containing the corresponding rows of modelled and measured
Author(s)
Gerald Jurasinski, gerald.jurasinski@uni-rostock.de
Examples
## See examples at reco.bulk