Check the time column for proper class and, if geom = TRUE
,
transform data.frame
into a SpatVector
object.
calc_return_locs(covar, POSIXt = TRUE, geom, crs)
a data.frame or SpatVector object (depending on geom
paramter)
data.frame(1). Calculated covariates data.frame
.
logical(1). Should the time values in covar
be of class
POSIXt
? If FALSE
, the time values will be checked for integer class
(year and year-month).
FALSE/"sf"/"terra". Should covar
be returned as a
data.frame
? Default is FALSE
, options with geometry are "sf" or "terra".
terra::crs(1). Coordinate reference system (inherited from
from
).
Mitchell Manware