ebase_form {EBASE} | R Documentation |
Format ebase output
ebase_form(out, dat, interval, maxinterp = 43200/interval)
out |
data.frame for model output |
dat |
data.frame as returned by |
interval |
timestep interval in seconds |
maxinterp |
numeric value for minimum number of continuous observations that must not be interpolated within a group defined by |
This function is used internally with ebase
and should not be called by itself.
Formatted output for ebase
with interpolated rows as NA
(except Date
and DateTimeStamp
as defined by maxinterp
library(dplyr)
# get four days of data
dat <- exdat %>%
filter(lubridate::month(DateTimeStamp) == 6) %>%
filter(lubridate::day(DateTimeStamp) %in% 1:4)
dat <- ebase_prep(dat, Z = 1.85, interval = 900, ndays = 1)
ebase_form(exres, dat, interval = 900, maxinterp = 48)