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