ebase_form {EBASE}R Documentation

Format ebase output

Description

Format ebase output

Usage

ebase_form(out, dat, interval, maxinterp = 43200/interval)

Arguments

out

data.frame for model output

dat

data.frame as returned by ebase_prep

interval

timestep interval in seconds

maxinterp

numeric value for minimum number of continuous observations that must not be interpolated within a group defined by ndays to assign as NA in output

Details

This function is used internally with ebase and should not be called by itself.

Value

Formatted output for ebase with interpolated rows as NA (except Date and DateTimeStamp as defined by maxinterp

Examples

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) 

[Package EBASE version 1.0.1 Index]