rename_geometry: Rename Geometry

View source: R/utils.R

rename_geometryR Documentation

Rename Geometry

Description

correctly renames the geometry column of a sf object.

Usage

rename_geometry(g, name)

Arguments

g

sf data.table

name

character name to be used for geometry

Value

sf data.frame with geometry column renamed according to name parameter

Examples


(g <- sf::st_sf(a=3, geo = sf::st_sfc(sf::st_point(1:2))))
rename_geometry(g, "geometry")


hydroloom documentation built on Sept. 11, 2024, 8:20 p.m.