Downloads HWSD data, wrapped by ws_subset() for convenient use. This is a function mainly for internal use but exposed so people can benefit from it in other (more flexible) setups if so desired.

ws_get(location, param, path, internal = TRUE)

Arguments

location

file with several site locations and coordinates in a comma delimited format: site, latitude, longitude

param

which soil parameter to use

path

default is tempdir()

internal

return an internal raster or just retain values in the path

Value

HWSD data as a raster file