Este mapa es calculado a partir del mapa comunal para no recargar el volumen de datos del paquete.

generar_distritos(mapa = chilemapas::mapa_comunas)

Arguments

mapa

mapa a agregar, por defecto es todo el mapa nacional

Value

Un objeto de clase sf y data.frame.

Examples

generar_distritos()
#> Joining with `by = join_by(codigo_distrito)`
#> # A tibble: 28 × 3
#>    codigo_distrito codigo_region                                        geometry
#>    <chr>           <chr>                                          <GEOMETRY [°]>
#>  1 02              01            POLYGON ((-69.93023 -21.4246, -69.92376 -21.42…
#>  2 03              02            MULTIPOLYGON (((-70.60654 -23.43054, -70.60995…
#>  3 04              03            MULTIPOLYGON (((-68.36698 -26.79685, -68.40267…
#>  4 05              04            MULTIPOLYGON (((-71.28791 -29.9416, -71.29912 …
#>  5 07              05            MULTIPOLYGON (((-71.49302 -33.10398, -71.49404…
#>  6 06              05            POLYGON ((-71.49074 -32.77034, -71.49393 -32.7…
#>  7 15              06            POLYGON ((-70.91453 -34.14454, -70.92619 -34.1…
#>  8 16              06            POLYGON ((-71.07191 -34.18389, -71.07877 -34.1…
#>  9 17              07            POLYGON ((-72.10298 -35.44028, -72.0949 -35.44…
#> 10 18              07            POLYGON ((-72.1032 -36.12348, -72.09964 -36.12…
#> # ℹ 18 more rows