createGapsFromEstimatedPeriods: Create gaps in data if there is estimated time series.

Description Usage Arguments

View source: R/utils-gaps.R

Description

If there is estimated data, then the estimated time series should treat non-estimated periods as gaps and non-estimated time-series should treat estimated periods as gaps. If there is not an estimatedPeriods field, then there will be no gaps due to estimated data for this time series.

Usage

1
2
createGapsFromEstimatedPeriods(timeSeries, timezone, isDV = FALSE,
  inverted = FALSE)

Arguments

timeSeries

list of points (data frame with at least time and values columns) and estimatedPeriods (data frame with startDate and endDate columns)

timezone

string giving the timezone

isDV

logical saying whether or not the time series is made of daily values; default is FALSE

inverted

logical, you are treating estimated time periods as gaps (FALSE, default) or you are treating non-estimated time periods as gaps (TRUE).


USGS-R/repgen documentation built on April 14, 2021, 2:47 p.m.