Converts an object with spatial coordinates and a timestamp column
to a standardized sf/data.table-based format used by the clusterTrack package.
Usage
as_ctdf(
x,
coords = c("longitude", "latitude"),
time = "time",
s_srs = 4326,
t_srs = "+proj=eqearth",
...
)Arguments
- x
A
data.frameobject.- coords
Character vector of length 2 specifying the coordinate column names. Defaults to
c("longitude", "latitude").- time
Name of the time column. Will be renamed to
"timestamp"internally.- s_srs
Source spatial reference. Default is EPSG:4326
- t_srs
target spatial reference passed to
st_transform(). Default is "+proj=eqearth".- ...
Currently unused
