download_groads | R Documentation |
The download_groads()
function accesses and downloads
roads data from NASA's Global Roads Open Access Data Set (gROADS), v1 (1980-2010).
download_groads(
data_region = c("Americas", "Global", "Africa", "Asia", "Europe", "Oceania East",
"Oceania West"),
data_format = c("Shapefile", "Geodatabase"),
directory_to_save = NULL,
acknowledgement = FALSE,
download = FALSE,
remove_command = FALSE,
unzip = TRUE,
remove_zip = FALSE,
hash = FALSE
)
data_region |
character(1). Data can be downloaded for |
data_format |
character(1). Data can be downloaded as |
directory_to_save |
character(1). Directory to save data. Two sub-directories will be created for the downloaded zip files ("/zip_files") and the unzipped shapefiles ("/data_files"). |
acknowledgement |
logical(1). By setting |
download |
logical(1). |
remove_command |
logical(1).
Remove ( |
unzip |
logical(1). Unzip zip files. Default is |
remove_zip |
logical(1). Remove zip files from directory_to_download.
Default is |
hash |
logical(1). By setting |
For hash = FALSE
, NULL
For hash = TRUE
, an rlang::hash_file
character.
Zip and/or data files will be downloaded and stored in
respective sub-directories within directory_to_save
.
Mitchell Manware, Insang Song
data_ciesin2013groadsamadeus
## Not run:
download_groads(
data_region = "Americas",
data_format = "Shapefile",
directory_to_save = tempdir(),
acknowledgement = TRUE,
download = FALSE, # NOTE: download skipped for examples,
remove_command = TRUE,
unzip = FALSE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.