st_geometry: get, set, or replace geometry from an sf object
Description
get, set, or replace geometry from an sf object
Usage
"st_geometry"(obj, ...)
st_geometry(obj, ...)
"st_geometry"(obj, ...)
"st_geometry"(obj, ...)
"st_geometry"(obj, ...)
st_geometry(x) <- value
Arguments
obj
object of class sf or sfc
...
ignored
x
object of class data.frame
value
object of class sfc
Value
st_geometry returns an object of class sfc, a list-column with geometriesst_geometry returns an object of class sfc. Assigning geometry to a data.frame creates an sf object, assigning it to an sf object replaces the geometry list-column.