Learn R Programming

heatwaveR (version 0.3.3)

proto_event: Detect proto-events based on a chosen criterion (column).

Description

An internal function that detects proto-events, which are periods of time above a threshold, but without necessarily considering a minimum duration or joining across gaps.

Usage

proto_event(t_series, criterion_column, minDuration, joinAcrossGaps, maxGap)

Arguments

t_series

A dataframe of the correct dimensions inherited from detect_event within which this runs.

criterion_column

The column to use for the detection of events.

minDuration

Minimum duration for acceptance of detected events.

joinAcrossGaps

This logic gate tells this internal function if it should connect events across the maxGap (see below). The default it inherits is TRUE.

maxGap

This is the number of rows (days) across which distinct events will be combined into one event if joinAcrossGaps = TRUE.

Value

A dataframe that will be used within detect_event.