Description Usage Details Value Examples
View source: R/get_temperatures.R
Downloads mean temperatures in Italy from https://www.ilmeteo.it, throughout the period 2020/02/24 - today and put them in a table after rearranging and interpolating missing values.
1 |
A search of the mean temperatures of the 107 italian provinces is performed. The available data is stored and manipulated as follows: missing dates are added; missing temperature values are linearly interpolated through the preceding and following values of the same province; a weighted mean of the mean temperatures of each day, with provinces' areas as weights, is performed; its result is interpreted as the mean temperature of the whole country and is appended to the data frame.
A data frame with three columns: loc
(locality), date
, temp
(temperature).
1 2 3 4 5 | ## Not run:
temperatures <- get_temperatures()
subset(temperatures, loc == "Italy")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.