Learn R Programming

futureheatwaves (version 1.0.3)

IDHeatwavesCPP: Identify heat waves that are a certain number of days long

Description

This function identifies heat waves that are a certain number of days long.

Usage

IDHeatwavesCPP(heatwaveLength, tempsExceedingCutoff)

Arguments

heatwaveLength
Number of days that a heat wave lasts under the user's definition
tempsExceedingCutoff
A vector of 1s and 0s the length of the number of days in the time series. 1 means the temperature for that day exceeds the calculated threshold; 0 means it does not exceed the threshold.

Value

A dataframe containing information about the heat waves for this series. It contains two columns: hw and hw.number.