Hello every one. I use sdm function for prediction process in plants. But, there is an error occurs when I run this code
d<-sdmData(species~.,sp,predictors=envc,bg=list(n=10000),method='gRandom',remove=TRUE)#remove=TRUE)# method='eRandom'
what is the solution?
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘sdmData’ for signature ‘"formula", "data.frame", "missing", "data.frame"’