tidy_spatial_data: Tidy spatial data

View source: R/spatial.R

tidy_spatial_dataR Documentation

Tidy spatial data

Description

[Experimental]

This function tidies spatial data converting the attribute columns to snake case, set the supplied coordinate reference system, extracting the polygons from a geometry collection and optionally checking for invalid geometry.

Usage

tidy_spatial_data(sf_data, epsg_number, check_valid = FALSE)

Arguments

sf_data

The spatial data frame to tidy as a sf spatial object.

epsg_number

EPSG number as an integer.

check_valid

Should the invalid geometry by checked (TRUE) or not as the default (FALSE).

Value

The tidied spatial data frame returned as a sf spatial object.

Examples

## Not run: 
tidy_spatial_data(sf_data = uk_ireland_base_map, epsg_number = 27700, check_valid = TRUE)

## End(Not run)

gcfrench/store documentation built on May 17, 2024, 5:52 p.m.