Learn R Programming

futureheatwaves (version 1.0.3)

average_length: Calculate average length of extreme events

Description

This function takes a dataframe of extreme events, as created by gen_hw_set, and calculates the average length (in days) of events in the dataframe.

Usage

average_length(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 average length of extreme events in a dataframe of events, as generated by gen_hw_set.

Examples

Run this code
data(hw_datafr)
average_length(hw_datafr)

Run the code above in your browser using DataLab