get_weather: Winnipeg Weather

Description Usage Arguments Value Examples

View source: R/wpg_weather.R

Description

This function uses the reim package to load Winnipeg weather abstracting station names. Measurements can be converted to metric using meathermetrics.

Usage

1
2
3
4
5
6
get_weather(
  station = c("wpg", "forks", "airport"),
  start = as.character(Sys.Date() - 365),
  end = as.character(Sys.Date()),
  metric = TRUE
)

Arguments

station

a Winnipeg weather station name in English

start

the start date of the weather period

end

the end date of the weather period

metric

whether the output should be in metric

Value

hourly Winnipeg weather data set including precipitation and temperature

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
    get_weather(station = "forks",
                start = '2018-01-01',
                end = '2018-02-28',
                metric = TRUE)
    get_weather(station = "airport",
                start = '2018-01-01')

## End(Not run)

jdallmann/winnipegr documentation built on Jan. 20, 2020, 2:05 a.m.