
Generate unique spatiotemporal identifier from stdt object
Source:R/generate_index.R
generate_spt_index.RdIt generates unique spatiotemporal identifier in the
input stdt object. Regardless of mode values
(should be one of "spatial" or "spatiotemporal"),
the index column will be named "sp_index".
Usage
generate_spt_index(covars, mode = c("spatial", "spatiotemporal"))Arguments
- covars
data.frame-like object with
lon,lat, andtimecolumns. Seeprep_input()- mode
One of
"spatial"or"spatiotemporal"