Learn R Programming

futureheatwaves (version 1.0.0)

average_length: Calculate average length of heat waves

Description

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

Usage

average_length(hw_datafr)

Arguments

hw_datafr
A dataframe of heat waves and their characteristics, as created by gen_hw_set

Value

  • A numeric value with the average length of heat waves in a dataframe of heat waves, 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