Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

worldclim

WorldClim climate data


Description

Download WorldClim data

Usage

worldclim_global(var, res, path)
worldclim_country(country, var, path)
worldclim_tile(var, lon, lat, path)

Arguments

var

character. Valid variables names are "tmin", "tmax", "tavg", "prec" and "bio"

res

numeric. Valid resolutions are 10, 5, 2.5, and 0.5 (minutes of a degree)

path

character. Path where to download the data to

country

character. Country name or code

lon

numeric. Longitude

lat

numeric. Latitude

Value

SpatRaster

See Also

Examples

lux <- worldclim_country("Luxembourg", var="tmin", path=tempdir())

geodata

Download Geographic Data

v0.2-3
GPL (>= 3)
Authors
Robert J. Hijmans [cre, aut], Aniruddha Ghosh [ctb], Alex Mandel [ctb]
Initial release
2021-05-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.