get_temperatures: Italy temperatures' getter

Description Usage Details Value Examples

View source: R/get_temperatures.R

Description

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.

Usage

1

Details

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.

Value

A data frame with three columns: loc (locality), date, temp (temperature).

Examples

1
2
3
4
5
## Not run: 
 temperatures <- get_temperatures()
 subset(temperatures, loc == "Italy")

## End(Not run)

Andreaierardi/disCOVIDer19 documentation built on Nov. 3, 2020, 2:24 a.m.