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
logical(1). Should
covar
be returned as adata.frame
? Default isFALSE
.- crs
terra::crs(1). Coordinate reference system (inherited from
from
).