toRegularTS: Create regular time series

Description Usage Arguments Value

View source: R/Prep_supporting_data.R

Description

Create regular time series

Usage

1
toRegularTS(tsi, dts, fun, resol)

Arguments

tsi

vector of observations

dts

dates associated with the observations. This should be a Date object.

fun

function used to aggregate observations to monthly observations. This should be 'max' or 'mean'.

resol

desired temporal resolution of the output. This could be 'monthly', 'quart', or 'daily'

Value

a vector with a regular time series object


RETURN-project/makeDataCube documentation built on Feb. 11, 2022, 3:04 p.m.