powered by
Test if a stripped gadm_sp object exists on the file system in the directory 'basefile'
strippedExists(name, level, basefile = './')
Character vector of a named region. An ISO-3166-1 code or a custom name. You don't have to specify the suffix (admX) nor the file extension (.rds).
Integer the level of the administrative boundaries (0 is the country, higher values equal finer divisions)
Character vector the path of the directory where shapefiles are stored. Default is "./"
Boolean TRUE if the file exists, FALSE if not
----
# NOT RUN { # library(GADMTools) # library(sp) # if (strippedExists('BEL', level = 2) { # BE <- gadm_loadStripped("BEL", level=2) # } # }
Run the code above in your browser using DataLab