Description Usage Arguments Details Author(s) See Also Examples
The function will load all the models wanted from the hardrive to R's memory for any usage.
1 | LoadModels(Sp=1, PA='all', rep='all', models='all')
|
Sp |
a vector giving the species for which you want the models to be loaded. Numbers are wanted, not names. Typing 'all' selects all the species modelled. |
PA |
a vector giving the PA runs for which you want the models to be loaded. Typing 'all' selects all the pseudo-absences runs. |
rep |
a vector giving the repetitions for which you want the models to be loaded. Typing 'all' selects all the repetition runs. |
models |
a vector giving the models for which you want the models to be loaded. names are wanted. Typing 'all' selects all the models available. |
rep : '1' is the 100% model and '2' the first repetitions
BEWARE : storing the models outside of R is made to avoid overloading of the memory. Loading back a lot of models will tend towards saturation, and an exceeding number will crash R, or make it unable to run properly.
Wilfried Thuiller, Bruno Lafourcade
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
data(Sp.Env)
data(CoorXY)
#This command is necessary for the run of BIOMOD as a new dataframe is produced for the Models function
Initial.State(Response=Sp.Env[,11:12], Explanatory=Sp.Env[,4:10],
IndependentResponse=NULL, IndependentExplanatory=NULL)
#Here are done 0 PA runs and 1 repetitions for each run. This will hence take several minutes.
Models(CTA = TRUE, CV.tree = 5, RF = TRUE, CV.ann = 2,
NbRunEval = 1, DataSplit = 80, Roc=TRUE, Optimized.Threshold.Roc=TRUE, Kappa=TRUE, TSS=TRUE, VarImport=5,
NbRepPA=0, strategy="circles", coor=CoorXY, distance=2, nb.absences=1000)
LoadModels(Sp=1)
LoadModels(Sp=2, models=c("CTA", "RF"))
LoadModels(Sp='all')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.