Learn R Programming

EBASE (version 1.1.0)

ebase_form: Format ebase output

Description

Format ebase output

Usage

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

Value

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

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.

Examples

Run this code
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) 

Run the code above in your browser using DataLab