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

View source: R/get-zones.R

spod_clean_zones_v2R 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". It also attacches the population counts and zone names provided in the csv files supplied by the original data provider.

Usage

spod_clean_zones_v2(zones_path)

Arguments

zones_path

The path to the zones spatial data file.

Value

A spatial 'sf“ object containing the cleaned zones data.


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