Description Usage Arguments Details Value
View source: R/GetDailyStationData.R
Fetch daily Meteostat data for a station for at most yearly interval
1 2 3 4 5 6 | dtGetDailyStationDataOverUpToOneYear(
iMeteostatStationId,
cApiKey,
dateStartDate,
dateEndDate
)
|
iMeteostatStationId |
- integer scalar, ID of the station as given by Meteostat's dictionary table of weather stations |
cApiKey |
- character scalar, Meteostat's key to use to fetch the data |
dateStartDate |
- Date class scalar, first date of the interval for which the data is to be obtained |
dateEndDate |
- Date class scalar, last date of the interval for which the data is to be obtained |
This function fetches data made available via Meteostat's API. Please note that due to the cap on the size of the window for which the data can be fetched, this function can only handle requests that ask for data for up to 370 days. For generalized version of this function capable of handling arbitrary time intervals cf. dtGetDailyStationData
data.table with the data fetched; the colnames are self-explanatory, in case of doubt cf. the implementation and API's documentation: https://dev.meteostat.net/api/stations/daily.html#response
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.