Skip to content

Reference

Load

Load a dataset by its name in rgeomex (R).

Parameters:

Name Type Description Default
dataset str

Name of the dataset, e.g. "AGEE_inegi19_mx" or "blocks_ine20_mx" (see :func:datasets).

required
cve_edo (str, int or list)

INEGI state key(s). Required for the datasets split by state (AGEB_inegi_2019, blocks_ine20_mx, blocks_ine20_mx_centroid, sectores_ine20_mx); for the whole datasets it filters the rows of the state when the dataset has a CVE_ENT or entidad column.

None

Table of the available datasets.

INE 2020 blocks (manzanas) of one or several states.

Centroids of the INE 2020 blocks of one or several states.

INEGI 2019 AGEB of one or several states.

INE 2020 electoral sections (secciones) of one or several states.

Extract

Boundary of one or several localities (INEGI 2019), found by their approximate name.

locality is a name or a list of names, e.g. ["Guadalajara", "Zapopan", "Tonalá", "Tlaquepaque"]. For Mexico City (cve_edo = "09") all its localities are returned.

Blocks (INE 2020) that intersect one or several localities: {"locality", "block"}.

AGEB (INEGI 2019) that intersect one or several localities: {"locality", "ageb"}.

Sections (INE 2020) that intersect one or several localities: {"locality", "sectores"}.

Most similar string of t for each string of s (Levenshtein).

Same behaviour as rgeomex::find_most_similar_string() in R: returns None when no string is within max_dist or when there is a tie (unless feeling_lucky=True, which returns the first one).

Utilities

INEGI state key as two-digit text: 31, "31" or "031" -> "31".

Folder where the downloaded files are kept.

Delete the downloaded files (they are downloaded again when needed).