st_geometry: Drops the geometry column of 'sftime' objects

st_geometryR Documentation

Drops the geometry column of sftime objects

Description

Drops the geometry column of an sftime object. This will also drop the sftime class attribute and time_column attribute.

Usage

## S3 method for class 'sftime'
st_drop_geometry(x, ...)

Arguments

x

An sftime object.

...

ignored

Value

x without geometry column and without sftime and sf class.

Examples

# dropping the geometry column will also drop the `sftime` class:
g <- st_sfc(st_point(1:2))
time <- Sys.time()
x <- st_sftime(a = 3, g, time = time)
st_drop_geometry(x)


sftime documentation built on Sept. 12, 2024, 6:18 a.m.