You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In spatSample setting as.df=FALSE should return a martix but instead returns a data.frame.
library(terra)
#> Warning: package 'terra' was built under R version 4.2.2#> terra 1.6.51r<- rast(volcano)
samp<- spatSample(r, size=10, as.df=FALSE)
#> Warning: [is.lonlat] assuming lon/lat crs
class(samp)
#> [1] "data.frame"
In
spatSample
settingas.df=FALSE
should return a martix but instead returns a data.frame.Created on 2023-01-20 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: