Skip to contents

It 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, and time columns. See prep_input()

mode

One of "spatial" or "spatiotemporal"

Value

stdt with a new index named "sp_index"

Author

Insang Song