hsGetEvent: Get Sub-Timeseries belonging to Event(s)

View source: R/eventMain.R

hsGetEventR Documentation

Get Sub-Timeseries belonging to Event(s)

Description

Get Sub-Timeseries belonging to Event(s)

Usage

hsGetEvent(tSeries, events, evtnums, useIndex = FALSE)

Arguments

tSeries

data frame representing time series with first column holding the timestamp

events

event information as returned by hsEvents

evtnums

vector of event numbers to be selected

useIndex

if TRUE, tSeries is filtered by comparing the real row number in tSeries with the begin and end indices given in columns iBeg and iEnd of events. If FALSE, tSeries is filtered by comparing the timestamps in tSeries with the begin and end timestamps given in columns tBeg and tEnd of events. Defaults to TRUE if events contains columns iBeg and iEnd

Value

rows of tSeries belonging to the event numbers listed in evtnums


KWB-R/kwb.event documentation built on June 14, 2022, 1:15 p.m.