Skip to contents

Get Event Statistics

Usage

getEventStatistics(
  dataFrame,
  seriesName,
  events,
  functions = c("sum", "mean", "min", "max", "number.na"),
  eventNumbers = 1:nrow(events)
)

Arguments

dataFrame

data frame containing event data

seriesName

name of column in dataFrame

events

data frame containing event information as provided by hsGetEvent

functions

define statistical functions

eventNumbers

vector of same length as events has rows, giving the numbers that identify the events. Default: 1:nrow(events)

Value

data frame with event number in first column event and statistical values in further columns.