Title: | Simple Features for Dominican Republic Administrative Boundaries |
---|---|
Description: | The sfDR package provides a comprehensive collection of simple feature (sf) objects for the administrative boundaries of the Dominican Republic, including provinces, municipalities, municipal districts, and sections. These datasets are ideal for geospatial analysis, mapping, and data visualization, providing accurate and up-to-date information as per the `División Territorial 2021`. |
Authors: | Daniel E. de la Rosa [aut, cre], Adatar [cph] |
Maintainer: | Daniel E. de la Rosa <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.2 |
Built: | 2024-11-15 05:53:06 UTC |
Source: | https://github.com/adatar-do/sfDR |
This function loads the Dominican Republic municipal districts simple features (sf)
and adds metadata for municipalities, provinces, and regions if required.
It also optionally converts the result to an sf
object.
dr_municipal_districts( .sf = TRUE, .mun = FALSE, .prov = FALSE, .reg = FALSE, .uniques = TRUE )
dr_municipal_districts( .sf = TRUE, .mun = FALSE, .prov = FALSE, .reg = FALSE, .uniques = TRUE )
.sf |
Logical; if TRUE, converts the result to an |
.mun |
Logical; if FALSE, removes columns related to municipalities. Defaults to FALSE. |
.prov |
Logical; if FALSE, removes columns related to provinces. Defaults to FALSE. |
.reg |
Logical; if FALSE, removes columns related to regions. Defaults to FALSE. |
.uniques |
Logical; if TRUE, removes some duplicated IDs inserted to consider territories names changes over time. Defaults to TRUE. |
A simple features collection with 393 features and 10 fields:
Municipal district number (6 digits) based on the División Territorial 2021
order
Full name of the municipal district as defined in the División Territorial 2021
Municipality number (4 digits)
Full name of the municipality
Province number (2 digits)
Code of the province
Full name of the province
Region number
Name of the region
Code of the region
Polygon geometry representing each municipal district
A data frame or sf
object (if .sf is TRUE) with the loaded and processed data.
https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_DM
https://www.one.gob.do/publicaciones/2021/division-territorial-2021/
## Not run: # Load and process the data as sf object result <- dr_municipal_districts(TRUE, TRUE, TRUE, TRUE) print(result) ## End(Not run)
## Not run: # Load and process the data as sf object result <- dr_municipal_districts(TRUE, TRUE, TRUE, TRUE) print(result) ## End(Not run)
This function loads the Dominican Republic municipalities simple features (sf)
and adds metadata for provinces and regions if required.
It also optionally converts the result to an sf
object.
dr_municipalities(.sf = TRUE, .prov = FALSE, .reg = FALSE, .uniques = TRUE)
dr_municipalities(.sf = TRUE, .prov = FALSE, .reg = FALSE, .uniques = TRUE)
.sf |
Logical; if TRUE, converts the result to an |
.prov |
Logical; if FALSE, removes columns related to provinces. Defaults to FALSE. |
.reg |
Logical; if FALSE, removes columns related to regions. Defaults to FALSE. |
.uniques |
Logical; if TRUE, removes some duplicated IDs inserted to consider territories names changes over time. Defaults to TRUE. |
A simple features collection with 158 features and 8 fields:
Municipality number (3 digits) based on the División Territorial 2021
order
Full name of the municipality as defined in the División Territorial 2021
Province number (2 digits)
Code of the province
Full name of the province
Region number
Name of the region
Code of the region
Polygon geometry representing each municipality
A data frame or sf
object (if .sf is TRUE) with the loaded and processed data.
https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_MUNICIPIOS
https://www.one.gob.do/publicaciones/2021/division-territorial-2021/
## Not run: # Load and process the data as sf object result <- dr_municipalities(TRUE, TRUE, TRUE) print(result) ## End(Not run)
## Not run: # Load and process the data as sf object result <- dr_municipalities(TRUE, TRUE, TRUE) print(result) ## End(Not run)
This function loads the Dominican Republic provinces simple features (sf)
and adds metadata for regions if required.
It also optionally converts the result to an sf
object.
dr_provinces(.sf = TRUE, .reg = FALSE, .uniques = TRUE)
dr_provinces(.sf = TRUE, .reg = FALSE, .uniques = TRUE)
.sf |
Logical; if TRUE, converts the result to an |
.reg |
Logical; if FALSE, removes columns related to regions. Defaults to FALSE. |
.uniques |
Logical; if TRUE, removes some duplicated IDs inserted to consider territories names changes over time. Defaults to TRUE. |
A simple features collection with 32 features and 6 fields:
Province number (2 digits) based on the División Territorial 2021
order
Province code, a custom 2 or 3-letter abbreviation created for each province
Full name of the province as defined in the División Territorial 2021
Region number
Name of the region
Code of the region
Polygon geometry representing each province
A data frame or sf
object (if .sf is TRUE) with the loaded and processed data.
https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_PROV
https://www.one.gob.do/publicaciones/2021/division-territorial-2021/
## Not run: # Load and process the data as sf object result <- dr_provinces(TRUE, TRUE) print(result) ## End(Not run)
## Not run: # Load and process the data as sf object result <- dr_provinces(TRUE, TRUE) print(result) ## End(Not run)
This function loads the Dominican Republic development regions simple features (sf)
and adds metadata. It also optionally converts the result to an sf
object.
dr_regions(.sf = TRUE, .uniques = TRUE)
dr_regions(.sf = TRUE, .uniques = TRUE)
.sf |
Logical; if TRUE, converts the result to an |
.uniques |
Logical; if TRUE, removes some duplicated IDs inserted to consider territories names changes over time. Defaults to TRUE. |
A simple features collection with 10 features and 3 fields:
Region number (2 digits) based on the Decreto 710-04
order
Full name of the region as defined in the Decreto 710-04
Region code (3 letters). Abbreviation of the full region name
Polygon geometry representing each region
A data frame or sf
object (if .sf is TRUE) with the loaded and processed data.
https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_REG_20220630
https://www.one.gob.do/publicaciones/2021/division-territorial-2021/
## Not run: # Load and process the data as sf object result <- dr_regions() print(result) ## End(Not run)
## Not run: # Load and process the data as sf object result <- dr_regions() print(result) ## End(Not run)
This function loads the Dominican Republic sections simple features (sf)
and adds metadata for municipal districts, municipalities, provinces, and regions if required.
It also optionally converts the result to an sf
object.
dr_sections( .sf = TRUE, .dm = FALSE, .mun = FALSE, .prov = FALSE, .reg = FALSE, .uniques = TRUE )
dr_sections( .sf = TRUE, .dm = FALSE, .mun = FALSE, .prov = FALSE, .reg = FALSE, .uniques = TRUE )
.sf |
Logical; if TRUE, converts the result to an |
.dm |
Logical; if FALSE, removes columns related to municipal districts. Defaults to FALSE. |
.mun |
Logical; if FALSE, removes columns related to municipalities. Defaults to FALSE. |
.prov |
Logical; if FALSE, removes columns related to provinces. Defaults to FALSE. |
.reg |
Logical; if FALSE, removes columns related to regions. Defaults to FALSE. |
.uniques |
Logical; if TRUE, removes some duplicated IDs inserted to consider territories names changes over time. Defaults to TRUE. |
A simple features collection with 1,565 features and 12 fields:
Section number (8 digits) based on the División Territorial 2021
order
Full name of the section as defined in the División Territorial 2021
Municipal district number (6 digits)
Full name of the municipal district
Municipality number (4 digits)
Full name of the municipality
Province number (2 digits)
Code of the province
Full name of the province
Region number
Name of the region
Code of the region
Polygon geometry representing each section
A data frame or sf
object (if .sf is TRUE) with the loaded and processed data.
https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_SECCIONES
https://www.one.gob.do/publicaciones/2021/division-territorial-2021/
## Not run: # Load and process the data as sf object result <- dr_sections(TRUE, TRUE, TRUE, TRUE, TRUE) print(result) ## End(Not run)
## Not run: # Load and process the data as sf object result <- dr_sections(TRUE, TRUE, TRUE, TRUE, TRUE) print(result) ## End(Not run)
This function is deprecated. Use dr_provinces()
instead.
get_dr_provinces(...)
get_dr_provinces(...)
... |
Arguments to pass to |
Percentage distribution by provinces of remittances received by the Dominican Republic
remittance_by_province
remittance_by_province
remittance_by_province
Full name of the province
Percentage of the total remittances received in 2010
https://www.bancentral.gov.do/a/d/2532-sector-externo