View source: R/get_timeseries.R
bestWU | R Documentation |
Receives a set of meteorological data and return the most complete for a given city.If both are good, the first is returned.
bestWU(series, var)
series |
list of the competing time series. See examples. |
var |
name of the meteorological variable |
data.frame with the best series
NOT USE: con <- dbConnect(RSQLite::SQLite(), "../../AlertaDengueAnalise/mydengue.sqlite")
series1 = getWU(stations = 'SBCP',vars="temp_min", datasource= con)
series2 = getWU(stations = 'SBME',vars="temp_min", datasource= con)
res = bestWU(list(series1, series2),var="temp_min")
tail(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.