A general-purpose discussion zone for ecological biogeography.
If anyone has experienced this before then please kindly help, it could be my code too but as for the files, i have stacked rasters in vars, and have presence points in enmtools.species object called BTCode:my.args = c("betamultiplier=0.5", "autofeature=FALSE", "product=FALSE", "hinge=FALSE", "threshold=FALSE", "quadratic=FALSE", "replicates=10", "randomseed=TRUE", "jackknife=TRUE", "doclamp=FALSE", "extrapolate=FALSE", "applythresholdrule=Equal training sensitivity and specificity")bt.mx <- enmtools.maxent(BT, vars, nback = 15000, env.nback = 15000, rts.reps = 0, bg.source = "vars", args = my.args)Error: unable to find an inherited method for function ‘raster’ for signature ‘"numeric"’Thank you.Regards
I have also had that same error come up, and have played around with it a little. For me, I only got that error when I used the "replicates" argument, which was the same for the person who posted here: https://github.com/danlwarren/ENMTools/issues/133. In this link, it explains what the issue is, but not the solution, unfortunately. I think I will use dismo directly, instead of ENMTools, since it seems you can't do replicates with ENMTools.
Actually, a solution was posted here and I just didn't see it! http://enmtools.blogspot.com/2021/03/doing-replicates-of-enmtools-models.html