wratpper for get_climate_data()Source:
Function to recursively call the get_climate_data(). Handles a vector of basins or countries as well as multiple dates.
The ISO3 country code that you want data about. (http://unstats.un.org/unsd/methods/m49/m49alpha.htm) or the basin ID [1-468]
basin or country depending on the locator type
the type of data you want "mavg" for monthly averages, "annualavg"
The variable you're interested in. "pr" for precipitation, "tas" for temperature in celcius.
The starting year you want data for, can be in the past or the future. Must conform to the periods outlined in the world bank API. If given values don't conform to dates, the fuction will automatically round them.
The ending year you want data for, can be in the past or the future. Similar to the start date, dates will be rounded to the nearest end dat.