spod_clean_zones_v1: Fixes common issues in the zones data and cleans up variable...

View source: R/get-zones.R

spod_clean_zones_v1R Documentation

Fixes common issues in the zones data and cleans up variable names

Description

This function fixes any invalid geometries in the zones data and renames the "ID" column to "id".

Usage

spod_clean_zones_v1(zones_path, zones)

Arguments

zones_path

The path to the zones spatial data file.

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

Value

A spatial object containing the cleaned zones data.


spanishoddata documentation built on April 12, 2025, 1:24 a.m.