import_db: Loads district data for Perú

Description Usage Arguments Examples

View source: R/import_db.R

Description

Function 'import_db' the specified dataset.

Usage

1
import_db(dataset)

Arguments

dataset

is a character specifiying the dataset to request.

Current datasets available are:

- "Peru_names": Returns the name of the 1874 districts, 196 provinces and 25 regions of Perú as they are reported by the INEI in the REDATAM platform for the 2017 CENSUS.

- "Peru_shp": Returns the shapefile for thethe 1874 districts, 196 provinces and 25 regions of Perú

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
df <- data.frame(
  reg = c(
    "LIMA", "CALLAO", "CAJAMARCA", "AMAZONAS", "SAN MARTIN", "HUANUCO",
    "PASCO", "JUNIN", "CUSCO", "PUNO", "APURIMAC", "AYACUCHO",
    "HUANCAVELICA", "TUMBES", "PIURA", "LAMBAYEQUE", "LA LIBERTAD",
    "ANCASH", "ICA", "AREQUIPA", "TACNA", "MOQUEGUA", "LORETO", "UCAYALI",
    "MADRE DE DIOS"
  ),
  stringsAsFactors = FALSE
)

botbarja/test_list documentation built on Dec. 19, 2021, 10:49 a.m.