Description Usage Arguments Value References Examples
download_rain()
downloads monthly rainfall data from the
Climate Research Unit at the University of East Anglia (http://www.cru.uea.ac.uk/).
1 | download_rain(country = NULL, long = T, delete_raw = T)
|
country |
Character vector of ISO3 codes for the countries for which
rainfall data is to be downloaded. I suggest using the excellent
|
long |
Logical. If TRUE, the resulting data frame is a tidy output in which every observation is a country-year month of rainfall data. If FALSE every row is a year with the JAN to DEC monthly values as columns. |
delete_raw |
Logical. Delete local copies of the downloaded CRU files? Defaults to TRUE. |
If long == TRUE download_rain()
returns a data frame / tibble with the following
variables:
iso3c
: ISO3 code of a country
YEAR
: Year (currently 1901 - 2015)
month
: Month (character string of month, JAN - DEC)
month_numeric
: Month (numeric, 1-12)
rain
: Monthly mean of rainfall in milimeters per month (https://crudata.uea.ac.uk/cru/data/hrg/#info)
MAM, JJA, SON, DJF
: seasonal sum
ANN
: Annual sum of mean rainfall per month
Harris, I, PD Jones, TJ Osborn & DH Lister (2014) Updated high-resolution grids of monthly climatic observations - the CRU TS3.10 Dataset. International Journal of Climatology 34(3): 623-642.
1 2 3 4 5 6 | ## Not run:
# Download rainfall data for the Democratic Republic of the Congo.
rain_drc <- download_rain(country = "COD", long = T, delete_raw = T)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.