Hi all, I am a new user for R.
I faced a questions about subscript out of bounds. Although I checked some other helps before I sent this email, I still don't know how to deal with this problems. I want to use "domain" function to run species distribution model in R. I used "sp.occ.do<-domain(env.pre, pred_train, factors=c('continent')) & sp.occ.pre.pro<-predict(env.pre, sp.occ.do)" to predict species distribution. BUT, I got  "Error in domdist(object, ln[j], vals[, ln[j]]) : subscript out of bounds" and could not run the domain model. How can I solve this problem? Thanks, J [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.