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
# remotes::install_github("nowosad/spData") #dev version of spData is required here
library(terra)
#> terra version 1.4.5elev= rast(system.file("raster/elev.tif", package="spData"))
grain= rast(system.file("raster/grain.tif", package="spData"))
# worksz= zonal(elev, grain, fun="mean", as.raster=FALSE)
z#> grain elev#> 1 clay 14.80000#> 2 silt 21.15385#> 3 sand 18.69231# failsz2= zonal(elev, grain, fun="mean", as.raster=TRUE)
#> Error in x@ptr$replaceValues(from, to, -1, opt): Not compatible with requested type: [type=character; target=double].z2#> Error in eval(expr, envir, enclos): object 'z2' not found
See the below reprex:
Created on 2021-10-02 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: