EventFiltering: Event Filtering

View source: R/EventFiltering.R

EventFilteringR Documentation

Event Filtering

Description

Filters Events in Data

Usage

EventFiltering(EventNameorValue,EventArrayOrEvent,Silent=FALSE)

Arguments

EventNameorValue

Character or value to search for

EventArrayOrEvent

[1:n,1:d] Array (character or numerical matrix) or vector of string or values where the event has to be searched in, list cannot be interpreted, dataframes are converted to matrices

Silent

If TRUE, error warnings regarding events disabled. Default FALSE

Value

[1:n] Numerical Vector with ones and zeros, ones indicate found events

Author(s)

Michael Thrun

Examples

data(YearlyInterestRatesData)

# Filter all events, with value 22.000
res = EventFiltering(22.000, as.matrix(YearlyInterestRates))
# Indices with one values are indicative of found events in this entry/row of event vector/matrix
print(res)

# Data filtered for events
filteredEvents = YearlyInterestRates[which(res == 1),]

Mthrun/TSAT documentation built on Feb. 5, 2024, 11:15 p.m.