Find or define boundaries of sampling bursts in a time series

burstBounds(x, Fs, burstLength = NULL)

Arguments

x

A vector of POSIXct time stamps

Fs

Sampling rate, units of Hertz (samples per second)

burstLength

Desired length, in minutes, of sampling bursts to be analyzed

Value

A vector of row indices from input vector x that define time chunks to be analyzed. Each value is the start and end of a time chunk (except the 1st and last values of the vector)

Details

This function searches for natural breaks in a time series, or defines a set of breaks based on the desired length of sampling bursts to be analyzed.