map_download: Get Indonesia map from GADM

Description Usage Arguments

View source: R/download_map.R

Description

Download and get Indonesia map from http://biogeo.ucdavis.edu/data/gadm2.8/shp/IDN_adm_shp.zip and convert them to spatial data frame (sf).

Usage

1
2
3
4
5
6
7
map_download(folder = paste0(system.file("data", package = "nusantr"),
  "/raw"), filename = "file.zip",
  url = "http://biogeo.ucdavis.edu/data/gadm2.8/shp/IDN_adm_shp.zip")

map_convert(folder = paste0(system.file("data", package = "nusantr"),
  "/raw"), filename = "file.zip", output = system.file("data/spatial",
  package = "nusantr"))

Arguments

folder

download folder location

filename

name of the file (zip)

url

url location of the file

output

output location


rasyidstat/nusantr documentation built on Nov. 11, 2019, 9:16 p.m.