rename_geometry {hydroloom}R 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")


[Package hydroloom version 1.0.2 Index]