weighted_temperature_sum | R Documentation |
A temperature sum is constructed by summing the average daily temperature for each day, but applying a weight factor of 0.5 for January and 0.75 for February.
weighted_temperature_sum(temperatures, negative = FALSE)
temperatures |
vector Daily average temperatures in degree Celsius. |
negative |
boolean Whether to include negative temperature values in the summation. By default, negative values are set to 0, meaning that the temperature sum is monotonically increasing. |
Weighted temperature sum.
# Use fake temperatures
ts = rep(2, 365)
weighted_temperature_sum(ts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.