Learn R Programming

futureheatwaves (version 1.0.3)

storeHeatwaveEntry: Helper function that adds entries

Description

This is a helper function for IDHeatwavesCPP that adds entries to the data structures that track heatwave information

Usage

storeHeatwaveEntry(index, hwSize, hwCounter, hw, hwNumber)

Arguments

index
A running index.
hwSize
Size of the heat wave to be added.
hwCounter
Current number of heat waves.
hw
A reference of the vector that contains the heat waves
hwNumber
A reference of the vector that contains the heat wave numbers.