Description Usage Arguments Value References Examples
Low-level access to the EC Climate Bulk Data Service
1 2 3 4 |
location |
A vector of unambiguous name identifiers or station IDs (resolved using as_ec_climate_location). |
timeframe |
One of monthly, daily, or hourly. |
year |
The year for which to get data (required for daily requests) |
month |
The month for which to get data (required for hourly requests) |
cache |
A directory in which to cache downloaded files |
quiet |
Use FALSE for verbose output |
check_dates |
Check the request data against ec_climate_locations_all to avoid downloading data that is known not to exist. Pass FALSE to circumvent this check. |
endpoint |
The web address for the EC data service |
A data.frame (tibble) of the downloaded data frame, with all columns as character vectors
http://climate.weather.gc.ca/historical_data/search_historic_data_e.html ftp://client_climate@ftp.tor.ec.gc.ca/Pub/Get_More_Data_Plus_de_donnees/Readme.txt
1 2 3 4 | # station 27141 is Kentville CDA CS
monthly <- ec_climate_data_base(27141, timeframe = "monthly")
daily <- ec_climate_data_base(27141, timeframe = "daily", year = 1999)
hourly <- ec_climate_data_base(27141, timeframe = "hourly", year = 1999, month = 7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.