Learn R Programming

futureheatwaves (version 1.0.3)

number_of_heatwaves: Calculate number of extreme_events

Description

This function takes a dataframe of extreme events, as created by gen_hw_set, and calculates the number of events in the dataframe.

Usage

number_of_heatwaves(hw_datafr)

Arguments

hw_datafr
A dataframe of extreme events and their characteristics, as created by gen_hw_set

Value

A numeric value with the number of extreme events in a dataframe of events, as generated by gen_hw_set.

Details

To calculate the number of extreme events, this function determines the number of rows in the dataframe, since gen_hw_set outputs a dataframe with one and only one row per event.

Examples

Run this code
data(hw_datafr)
number_of_heatwaves(hw_datafr)

Run the code above in your browser using DataLab