bestWU: Chooses the most updated meteorological data for a city from...

Description Usage Arguments Value Examples

View source: R/get_timeseries.R

Description

Receives a set of meteorological data and return the most complete for a given city.If both are good, the first is returned.

Usage

1
bestWU(series, var)

Arguments

series

list of the competing time series. See examples.

var

name of the meteorological variable

Value

data.frame with the best series

Examples

1
2
3
4
5
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)

claudia-codeco/AlertTools documentation built on Aug. 12, 2021, 9:58 a.m.