Learn R Programming

spanishoddata (version 0.2.0)

spod_zone_names_en2es: Translate zone names from English to Spanish

Description

Translate zone names from English to Spanish

Usage

spod_zone_names_en2es(
  zones = c("districts", "dist", "distr", "distritos", "municipalities", "muni",
    "municip", "municipios", "lua", "large_urban_areas", "gau", "grandes_areas_urbanas")
)

Value

A character string with the translated zone name. Or NULL if the zone name is not recognized.

Arguments

zones

The zones for which to download the data. Can be "districts" (or "dist", "distr", or the original Spanish "distritos") or "municipalities" (or "muni", "municip", or the original Spanish "municipios") for both data versions. Additionaly, these can be "large_urban_areas" (or "lua", or the original Spanish "grandes_areas_urbanas", or "gau") for v2 data (2022 onwards).