average_mean_temp: Calculate average temperature of heat waves
Description
This function takes a dataframe of heat waves, as created by
gen_hw_set, and calculates the average of the daily
temperature during each heat wave across all heat waves in the dataframe.
Usage
average_mean_temp(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 temperature (degrees Fahrenheit)
during all heat waves for a dataset of heat waves, as generated by
gen_hw_set. This value is the mean of the average
temperature of each heat wave, not the average temperature across all
heat wave days (to calculate that, you would need to calculate a weighted
mean, weighted by the number of days in each heat wave).