to standard code, name, altCode and codeType columns
- the URL of the zipped shapefile
- the layer name or map name - this is the "xyz" of a zip file containing "xyz.shp". If you are getting multiple layers it is OK to repeatedly call this within the same session as the download is stored, see wd option.
- the name of the column containing the id or code
- the name of the column containing the label (optional - defaults to the same as codeCol)
- an optional column name containing another code type
- the "type" of the code - optional. defaults to NA
- do you want to simplify the map
- an optional working directory (defaults to `getOption("arear.download.dir", tempdir())`)
- an optional id for the map that can be used to retrieve it later (through getMap()) - defaults to either the mapName or if not present the name of the zip file.
- an optional license string
- passed to .cache, param nocache=TRUE to disable caching
a sf object containing the map
if (FALSE) {
downloadMap(
zipUrl="https://bit.ly/3A9TnR1",
mapName="NHS_England_Regions__April_2020__Boundaries_EN_BGC",
codeCol="nhser20cd",
nameCol="nhser20nm"
)
}