datprep: Prep input data

Description Usage Arguments Details Value Examples

Description

Prepare input data for estimating metabolic rates

Usage

1
datprep(dat, wqcols = c("do_mgl", "sal", "temp"), ...)

Arguments

dat

input data.frame

wqcols

chr string of column names to inteprolate across depths, water quality variables only

...

additional arguments passed to binterp

Details

Input data are linearly interpolated across depth bins and time to fill missing values and increase resolution. This is a wrapper to binterp, more details therein. This function processes the water quality variables in dat by passing the observations as nested data frames to binterp.

The time vector in the input data must have equal time steps.

Value

The expanded data.frame

Examples

1
2
3
4
## Not run: 
datprep(mblight)

## End(Not run)

fawda123/EstuaryMetabolism documentation built on May 16, 2019, 10:57 a.m.