Skip to contents

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

data frame 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 data is grouped, in seconds. Default: 60*60*24 = one day intervals; data availability is calculated separately for each time interval.

includeCount

if TRUE, not only the data availability in percent but also the number of records per interval from which the percentage has been calculated are included as separate columns in the result data frame.

dbg

If TRUE, debug messages are shown