What package replaced SDMTools??

Does anyone know what package replaced SDMTools? it was removed from CRAN.

I need to get the % coverage from a raster, I'm sending you my script:

m<-c(-0.2,0.2,1,0.2,0.6,2,0.6,1,3) # reclassified the scale of the NDVI

mat<-matrix(m,ncol=3,byrow=TRUE) #MATRIX of categorical value classes
mat
rc<-reclassify(ndvi,mat) # reclassify is important to make further analysis
plot(rc)

library(SDMTools) (Devtools), (adehabitatMA), etc. ->They did not work, I could not find the

ClassStat function.

the reclassified raster is in UTM, we need it in lat/long

c=ClassStat(rc,cellsize=30,latlon=FALSE)
head(c)

it was removed from live cran due to no maintainer. Old versions are archived there and you could get them.
i.e. Index of /src/contrib/Archive/SDMTools

I already checked that archive and none of the files worked:

ERROR: compilation failed for package 'SDMTools'

  • removing 'C:/Users/Maggie/AppData/Local/R/win-library/4.3/SDMTools'
    Warning in install.packages :
    installation of package ‘C:/Users/Maggie/Downloads/SDMTools_1.1-9.tar.gz’ had non-zero exit status

I already tested the file: SDMTools_1.1-221.2.tar.gz and apparently it worked.

Thank you.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.