Description Usage Arguments Value Note
This function takes a dataframe with columns for date and projected temperature and adds columns identifying which days belong to a heat wave and giving separate numbers to identify each discrete heat wave.
1 | IDheatwaves(threshold, datafr, global, custom)
|
threshold |
Numeric string with threshold temperature used in the heat wave definition, in degrees Fahrenheit. |
datafr |
A dataframe with daily temperature projections in the
the city being processed. This dataframe must have two columns:
(1) the first column must have the date of each observation, with
class "Date" and; (2) the second column must have temperatures
in degrees Fahrenheit. In the normal running of this package, this
dataframe will be generated by the closure created by
|
global |
An list object created by |
custom |
An list object created by |
Returns the dataframe entered as datafr
, but with new
columns providing heat wave identifiers. The returned dataframe will
have new columns for: hw
: whether a day was part of a heat wave
(0 : not part of a heat wave / 1: part of a heat wave); and
hw.number
: if it was part of a heat wave, the number of the
heat wave (1, 2, etc.).
The function actually used to identify heat waves in the time series
is specified in the 'IDheatwaves' slot of the 'custom' object passed
into this function. The default is the function
IDHeatwavesCPPwrapper
. The user can specify a different
function using the argument IDheatwavesFunction
in
gen_hw_set
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.