Fetch data from given parameters
Arguments
- code_muni
IBGE municipality code number with 7 digits.
- product
Zonal indicator product. Currently, only
brdwgd
.- indicator
Indicator name from the product. Check the available indicators with the product_info function.
- statistics
Statistics name from the indicator.
- date_start
A date.
- date_end
A date, >= than
date_start
.
Examples
# \donttest{
fetch_data(
code_muni = 3304557,
product = "brdwgd",
indicator = "tmax",
statistics = "mean",
date_start = as.Date("2008-01-01"),
date_end = as.Date("2008-01-10")
)
#> date value
#> 1 2008-01-01 32.30699
#> 2 2008-01-02 32.46510
#> 3 2008-01-03 35.87420
#> 4 2008-01-04 36.78043
#> 5 2008-01-05 31.33866
#> 6 2008-01-06 27.75847
#> 7 2008-01-07 26.01266
#> 8 2008-01-08 29.52877
#> 9 2008-01-09 29.21746
#> 10 2008-01-10 31.05568
# }