Ir al contenido

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.

Uso

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

Formato

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

Argumentos

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

Valor

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

Ejemplos

if (FALSE) { # \dontrun{
# Load and process the data as sf object
result <- dr_municipal_districts(TRUE, TRUE, TRUE, TRUE)
print(result)
} # }