proto_event3 | R Documentation |
An internal function that detects the events according to the heatwave
definition, and joins across the gaps if desired. This is an update of
detect_event
and is made entirely within data.table to
benefit from the speed improvements.
proto_event3(p_series, criterion_column, minDuration, joinAcrossGaps, maxGap)
p_series |
A data.table of the correct dimensions received
from |
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 |
This is the number of rows (days) across which distinct
events will be combined into one event if |
A dataframe that will be used within detect_event
,
or which can be returned by detect_event
if the switch
'protoEvent' is specified as TRUE.
Albertus J. Smit, Robert W. Schlegel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.