sp_promote: Function to add a data slot in geometries.

View source: R/sp_promote.R

sp_promoteR Documentation

Function to add a data slot in geometries.

Description

sp_promote will add a single variable named id to the data slot of a geometry. id is a character vector.

Usage

sp_promote(sp)

Arguments

sp

Spatial object

Author(s)

Stuart K. Grange

Examples

## Not run: 

# Promote to spatial data frame
sp_with_data <- sp_promote(sp)


## End(Not run)


skgrange/gissr documentation built on June 20, 2024, 12:02 a.m.