Learn R Programming

sftime (version 0.3.0)

st_geometry: 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 sftime
st_drop_geometry(x, ...)

Value

x without geometry column and without sftime and sf class.

Arguments

x

An sftime object.

...

ignored

Examples

Run this code
# 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)

Run the code above in your browser using DataLab