data availability in time-series data
Usage
hsDataAvailability(
data,
tstep = minTimeStep(data[[1]], dbg = dbg),
interval = 60 * 60 * 24,
includeCount = TRUE,
dbg = FALSE
)Arguments
- data
dataframe with timestamp in first column- tstep
expected timestep between consecutive timestamps in seconds. Default: minimum time difference occurring in timestamps of data.
- interval
length of time intervals to which
datais grouped, in seconds. Default: 60*60*24 = one day intervals;dataavailability is calculated separately for each timeinterval.- includeCount
if TRUE, not only the
dataavailability in percent but also the number of records perintervalfrom which the percentage has been calculated are included as separate columns in the resultdataframe.- dbg
If
TRUE, debug messages are shown