[R] Biomod model access

Matthew Bayly matt.j.bayly at gmail.com
Fri Feb 14 01:03:15 CET 2014


Hi great that was easy I feel like a bit of a fool for not figuring this 
out.


TO LOAD ALL SAVED MODELS AT ONCE:

library(biomod2)
# change directory to where you stored you’re original models (my documents 
is default if you did not specify). Go into the file models

*# TO LOAD ALL SAVED MODELS FROM PREVIOUS RUN*

rm(list=ls()) #will remove ALL objects currently stored in R

# open old models with the load command load()
list.files() # check to see if all your files appeared correctly

f <- as.list(list.files()) # get ready to load

for(i in f) {

  load(i)

}



More information about the R-help mailing list