findZeroNegativeGaps: Identify the start and end dates for gaps due to zeroes and...

Description Usage Arguments

View source: R/utils-gaps.R

Description

Finds periods of zero or negative data to the gaps field of the specified time series. Only identifies gaps for zeroes and negatives if they are going to be removed from the time series for logging (flagZeroNeg and isLogged are TRUE). Returns a data frame with two columns, startTime and endTime.

Usage

1
2
findZeroNegativeGaps(timeValueDF, timezone, flagZeroNeg, isVolumetricFlow,
  isDV = FALSE)

Arguments

timeValueDF

data.frame to split with at least two columns, value and time

timezone

string giving the timezone

flagZeroNeg

logical indicating whether or not the zeros & negatives can be removed for logging the axis

isVolumetricFlow

logical indicating whether the values represent volumetric flow or not (e.g. FALSE could indicate water level data)

isDV

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


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