
Download country georgraphic data
load_clean_ctry_sp.RdPulls country shapefiles directly from the geodatabase.
Usage
load_clean_ctry_sp(
azcontainer = suppressMessages(get_azure_storage_connection()),
fp = "GID/PEB/SIR/Data/spatial/global.ctry.rds",
ctry_guid = NULL,
ctry_name = NULL,
end_year = lubridate::year(Sys.Date()),
st_year = 2000,
data_only = FALSE,
type = NULL,
version = "standard",
edav = TRUE,
end.year = lifecycle::deprecated(),
st.year = lifecycle::deprecated(),
data.only = lifecycle::deprecated()
)Arguments
- azcontainer
Azure validated container object
- fp
strLocation of geodatabase.- ctry_guid
str arrayArray of all country GUIDS that you want to pull.- ctry_name
str arrayArray of all country names that you want to pull.- end_year
intLast year you want to pull information for. Default is current year.- st_year
intEarlier year of spatial data you want to pull. Default is 2000.- data_only
logicalWhether to return a tibble with shapefiles or not. Defaults toFALSE.- type
strWhether to return a spatial object for every year group. Defaults toNULL."long"Return a dataset for every year group.NULLReturn a dataset only with unique GUIDs and when they were active.
- version
strSpecify whether to return standard shapefiles or new shapefiles still under evaluation/development. Default is"standard"."standard"Standard shapefiles."dev"New shapefiles still under evaluation/development.
- edav
logicalLoad data from EDAV? Defaults to TRUE.- end.year
- st.year
- data.only