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
I'm trying without success to find the error in the ensemble() function in GNU/Linux Ubuntu.
Could you indicate a way to find the error?
Thanks!
Running the function example:
# library
library(sdm)
# data
file <- system.file("external/species.shp", package="sdm") # get the location of the species data
species <- vect(file) # read the shapefile
path <- system.file("external", package="sdm") # path to the folder contains the data
lst <- list.files(path=path,pattern='asc$',full.names = T) # list the name of the raster files
# stack is a function in the raster package, to read/create a multi-layers raster dataset
preds <- rast(lst) # making a raster object
d <- sdmData(formula=Occurrence~., train=species, predictors=preds)
d
# fit the models (5 methods, and 10 replications using bootstrapping procedure):
m <- sdm(Occurrence~.,data=d,methods=c('rf','tree','fda','mars','svm'),
replicatin='boot',n=10)
# ensemble using weighted averaging based on AUC statistic:
p1 <- ensemble(m, newdata=preds, filename='ens.tif',setting=list(method='weighted',stat='AUC'))
Error in .canProcessInMemory(.out[[1]], max(nlyr(.out), nlyr(newdata)) * :
in the slot of name "cpp" for this object of class "SpatRaster"
The text was updated successfully, but these errors were encountered:
Dear,
I'm trying without success to find the error in the ensemble() function in GNU/Linux Ubuntu.
Could you indicate a way to find the error?
Thanks!
Running the function example:
The text was updated successfully, but these errors were encountered: