Package 'sfDR'

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

Help Index


Load Dominican Republic Municipal Districts Simple Features (sf) [Experimental]

Description

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.

Usage

dr_municipal_districts(
  .sf = TRUE,
  .mun = FALSE,
  .prov = FALSE,
  .reg = FALSE,
  .uniques = TRUE
)

Arguments

.sf

Logical; if TRUE, converts the result to an sf object. Defaults to TRUE.

.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.

Format

A simple features collection with 393 features and 10 fields:

MD_ID

Municipal district number (6 digits) based on the ⁠División Territorial 2021⁠ order

MD_NAME

Full name of the municipal district as defined in the ⁠División Territorial 2021⁠

MUN_ID

Municipality number (4 digits)

MUN_NAME

Full name of the municipality

PROV_ID

Province number (2 digits)

PROV_CODE

Code of the province

PROV_NAME

Full name of the province

REG_ID

Region number

REG_NAME

Name of the region

REG_CODE

Code of the region

geometry

Polygon geometry representing each municipal district

Value

A data frame or sf object (if .sf is TRUE) with the loaded and processed data.

Source

https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_DM

https://www.one.gob.do/publicaciones/2021/division-territorial-2021/

Examples

## Not run: 
# Load and process the data as sf object
result <- dr_municipal_districts(TRUE, TRUE, TRUE, TRUE)
print(result)

## End(Not run)

Load Dominican Republic Municipalities Simple Features (sf) [Experimental]

Description

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.

Usage

dr_municipalities(.sf = TRUE, .prov = FALSE, .reg = FALSE, .uniques = TRUE)

Arguments

.sf

Logical; if TRUE, converts the result to an sf object. Defaults to TRUE.

.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.

Format

A simple features collection with 158 features and 8 fields:

MUN_ID

Municipality number (3 digits) based on the ⁠División Territorial 2021⁠ order

MUN_NAME

Full name of the municipality as defined in the ⁠División Territorial 2021⁠

PROV_ID

Province number (2 digits)

PROV_CODE

Code of the province

PROV_NAME

Full name of the province

REG_ID

Region number

REG_NAME

Name of the region

REG_CODE

Code of the region

geometry

Polygon geometry representing each municipality

Value

A data frame or sf object (if .sf is TRUE) with the loaded and processed data.

Source

https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_MUNICIPIOS

https://www.one.gob.do/publicaciones/2021/division-territorial-2021/

Examples

## Not run: 
# Load and process the data as sf object
result <- dr_municipalities(TRUE, TRUE, TRUE)
print(result)

## End(Not run)

Load Dominican Republic Provinces Simple Features (sf) [Experimental]

Description

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.

Usage

dr_provinces(.sf = TRUE, .reg = FALSE, .uniques = TRUE)

Arguments

.sf

Logical; if TRUE, converts the result to an sf object. Defaults to TRUE.

.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.

Format

A simple features collection with 32 features and 6 fields:

PROV_ID

Province number (2 digits) based on the ⁠División Territorial 2021⁠ order

PROV_CODE

Province code, a custom 2 or 3-letter abbreviation created for each province

PROV_NAME

Full name of the province as defined in the ⁠División Territorial 2021⁠

REG_ID

Region number

REG_NAME

Name of the region

REG_CODE

Code of the region

geometry

Polygon geometry representing each province

Value

A data frame or sf object (if .sf is TRUE) with the loaded and processed data.

Source

https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_PROV

https://www.one.gob.do/publicaciones/2021/division-territorial-2021/

Examples

## Not run: 
# Load and process the data as sf object
result <- dr_provinces(TRUE, TRUE)
print(result)

## End(Not run)

Load Dominican Republic Development Regions Simple Features (sf) [Experimental]

Description

This function loads the Dominican Republic development regions simple features (sf) and adds metadata. It also optionally converts the result to an sf object.

Usage

dr_regions(.sf = TRUE, .uniques = TRUE)

Arguments

.sf

Logical; if TRUE, converts the result to an sf object. Defaults to TRUE.

.uniques

Logical; if TRUE, removes some duplicated IDs inserted to consider territories names changes over time. Defaults to TRUE.

Format

A simple features collection with 10 features and 3 fields:

REG_ID

Region number (2 digits) based on the ⁠Decreto 710-04⁠ order

REG_NAME

Full name of the region as defined in the ⁠Decreto 710-04⁠

REG_CODE

Region code (3 letters). Abbreviation of the full region name

geometry

Polygon geometry representing each region

Value

A data frame or sf object (if .sf is TRUE) with the loaded and processed data.

Source

https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_REG_20220630

https://www.one.gob.do/publicaciones/2021/division-territorial-2021/

Examples

## Not run: 
# Load and process the data as sf object
result <- dr_regions()
print(result)

## End(Not run)

Load Dominican Republic Sections Simple Features (sf) [Experimental]

Description

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.

Usage

dr_sections(
  .sf = TRUE,
  .dm = FALSE,
  .mun = FALSE,
  .prov = FALSE,
  .reg = FALSE,
  .uniques = TRUE
)

Arguments

.sf

Logical; if TRUE, converts the result to an sf object. Defaults to TRUE.

.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.

Format

A simple features collection with 1,565 features and 12 fields:

SEC_ID

Section number (8 digits) based on the ⁠División Territorial 2021⁠ order

SEC_NAME

Full name of the section as defined in the ⁠División Territorial 2021⁠

MD_ID

Municipal district number (6 digits)

MD_NAME

Full name of the municipal district

MUN_ID

Municipality number (4 digits)

MUN_NAME

Full name of the municipality

PROV_ID

Province number (2 digits)

PROV_CODE

Code of the province

PROV_NAME

Full name of the province

REG_ID

Region number

REG_NAME

Name of the region

REG_CODE

Code of the region

geometry

Polygon geometry representing each section

Value

A data frame or sf object (if .sf is TRUE) with the loaded and processed data.

Source

https://geoportal.iderd.gob.do/layers/geonode_data:geonode:RD_SECCIONES

https://www.one.gob.do/publicaciones/2021/division-territorial-2021/

Examples

## Not run: 
# Load and process the data as sf object
result <- dr_sections(TRUE, TRUE, TRUE, TRUE, TRUE)
print(result)

## End(Not run)

Deprecated function: get_dr_provinces [Deprecated]

Description

This function is deprecated. Use dr_provinces() instead.

Usage

get_dr_provinces(...)

Arguments

...

Arguments to pass to dr_provinces().


Percentage distribution by provinces of remittances received by the Dominican Republic

Description

Percentage distribution by provinces of remittances received by the Dominican Republic

Usage

remittance_by_province

Format

remittance_by_province

province

Full name of the province

percentage

Percentage of the total remittances received in 2010

Source

https://www.bancentral.gov.do/a/d/2532-sector-externo