Description Usage Arguments Details Value See Also Examples
View source: R/get_boundaries.R
function to download administrative boundaries data from the gadm archive, starting from a country name or ISO code, and the level of desired administrative units
| 1 | get_boundaries(iso, level = 1, path = NULL, makefold = TRUE)
 | 
| iso | 
 | 
| level | 
 | 
| path | 
 | 
| makefold | 
 | 
the function is a simple wrapper to the raster::getData function, with a-priori checks on country name or ISO code
SpatialPolygonsDataFrame containing the desired data
| 1 2 3 4 5 6 7 8 | ## Not run: 
 library(sprawl)
 library(sp)
 ita_boundaries <- get_boundaries("Italy", 0)
 ita_region_boundaries <- get_boundaries("ITA", 1)
 plot(ita_region_boundaries)
 
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.