Skip to content

Commit 1a4acc9

Browse files
committedJun 26, 2023
Update documentation (R and Rd files)
1 parent 82bd608 commit 1a4acc9

33 files changed

+371
-410
lines changed
 

‎NAMESPACE

-13
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,16 @@ exportMethods(plot)
127127
exportMethods(predict)
128128
exportMethods(show)
129129
exportMethods(summary)
130-
importFrom(MASS,stepAIC)
131130
importFrom(PresenceAbsence,optimal.thresholds)
132131
importFrom(PresenceAbsence,presence.absence.accuracy)
133132
importFrom(abind,abind)
134133
importFrom(abind,asub)
135134
importFrom(dplyr,"%>%")
136135
importFrom(dplyr,mutate_at)
137-
importFrom(dplyr,select_at)
138-
importFrom(earth,earth)
139136
importFrom(foreach,"%:%")
140137
importFrom(foreach,"%do%")
141138
importFrom(foreach,"%dopar%")
142139
importFrom(foreach,foreach)
143-
importFrom(gbm,gbm)
144140
importFrom(gbm,gbm.perf)
145141
importFrom(gbm,predict.gbm)
146142
importFrom(ggplot2,aes)
@@ -188,22 +184,14 @@ importFrom(graphics,plot.new)
188184
importFrom(graphics,points)
189185
importFrom(graphics,polygon)
190186
importFrom(graphics,text)
191-
importFrom(maxnet,maxnet)
192-
importFrom(mda,fda)
193-
importFrom(mda,mars)
194-
importFrom(methods,as)
195187
importFrom(methods,callNextMethod)
196188
importFrom(methods,new)
197-
importFrom(methods,validObject)
198-
importFrom(nnet,nnet)
199189
importFrom(pROC,auc)
200190
importFrom(pROC,coords)
201191
importFrom(pROC,roc)
202-
importFrom(randomForest,randomForest)
203192
importFrom(reshape,melt.array)
204193
importFrom(reshape2,melt)
205194
importFrom(rpart,prune)
206-
importFrom(rpart,rpart)
207195
importFrom(sp,read.asciigrid)
208196
importFrom(stats,aggregate)
209197
importFrom(stats,reshape)
@@ -251,5 +239,4 @@ importFrom(utils,setTxtProgressBar)
251239
importFrom(utils,tail)
252240
importFrom(utils,txtProgressBar)
253241
importFrom(utils,write.table)
254-
importFrom(xgboost,xgboost)
255242
importMethodsFrom(methods,show)

‎R/BIOMOD_Modeling.R

+12-13
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@
5656
##' @param data.split.table \emph{deprecated}, now called \code{CV.user.table}
5757
##' @param do.full.models \emph{deprecated}, now called \code{CV.do.full.models}
5858
##'
59-
##' @param OPT.data.type a \code{character} corresponding to the data type to
60-
##' be used, must be either \code{binary}, \code{binary.PA}, \code{abundance},
61-
##' \code{compositional}
62-
##' @param OPT.strategy a \code{character} corresponding to the method to
63-
##' select models' parameters values, must be either \code{default},
64-
##' \code{bigboss}, \code{user.defined}, \code{tuned}
59+
##' @param OPT.data.type a \code{character} corresponding to the data type to be used, must be
60+
##' either \code{binary}, \code{binary.PA}, \code{abundance}, \code{compositional}
61+
##' @param OPT.strategy a \code{character} corresponding to the method to select models'
62+
##' parameters values, must be either \code{default}, \code{bigboss}, \code{user.defined},
63+
##' \code{tuned}
6564
##' @param OPT.val.list (\emph{optional, default} \code{NULL}) \cr
6665
##' A \code{list} containing parameters values for some (all) models
6766
##' @param OPT.user (\emph{optional, default} \code{TRUE}) \cr
@@ -120,24 +119,24 @@
120119
##' \code{\link{BIOMOD_FormatingData}}), \cr \code{PA.nb.rep *(nb.rep + 1)} models will be
121120
##' created.}
122121
##'
123-
##' \item{models}{The set of models to be calibrated on the data. 10 modeling techniques
122+
##' \item{models}{The set of models to be calibrated on the data. 12 modeling techniques
124123
##' are currently available :
125124
##' \itemize{
126-
##' \item \code{GLM} : Generalized Linear Model (\code{\link[stats]{glm}})
125+
##' \item \code{ANN} : Artificial Neural Network (\code{\link[nnet]{nnet}})
126+
##' \item \code{CTA} : Classification Tree Analysis (\code{\link[rpart]{rpart}})
127+
##' \item \code{FDA} : Flexible Discriminant Analysis (\code{\link[mda]{fda}})
127128
##' \item \code{GAM} : Generalized Additive Model (\code{\link[gam]{gam}}, \code{\link[mgcv]{gam}}
128129
##' or \code{\link[mgcv]{bam}}) \cr
129130
##' (see \code{\link{bm_ModelingOptions} for details on algorithm selection})
130131
##' \item \code{GBM} : Generalized Boosting Model, or usually called Boosted Regression Trees
131132
##' (\code{\link[gbm]{gbm}})
132-
##' \item \code{CTA} : Classification Tree Analysis (\code{\link[rpart]{rpart}})
133-
##' \item \code{ANN} : Artificial Neural Network (\code{\link[nnet]{nnet}})
134-
##' \item \code{SRE} : Surface Range Envelop or usually called BIOCLIM
135-
##' \item \code{FDA} : Flexible Discriminant Analysis (\code{\link[mda]{fda}})
133+
##' \item \code{GLM} : Generalized Linear Model (\code{\link[stats]{glm}})
136134
##' \item \code{MARS} : Multiple Adaptive Regression Splines (\code{\link[earth]{earth}})
137-
##' \item \code{RF} : Random Forest (\code{\link[randomForest]{randomForest}})
138135
##' \item \code{MAXENT} : Maximum Entropy
139136
##' (\url{https://biodiversityinformatics.amnh.org/open_source/maxent/})
140137
##' \item \code{MAXNET} : Maximum Entropy (\code{\link[maxnet]{maxnet}})
138+
##' \item \code{RF} : Random Forest (\code{\link[randomForest]{randomForest}})
139+
##' \item \code{SRE} : Surface Range Envelop or usually called BIOCLIM
141140
##' \item \code{XGBOOST} : eXtreme Gradient Boosting Training (\code{\link[xgboost]{xgboost}})
142141
##' }}
143142
##'

‎R/biomod2_data.R

+21-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,31 @@
33
#' A \code{data.frame} containing for each single model available in \pkg{biomod2}
44
#' the package and functions to be called.
55
#'
6-
#' @format A data frame with 12 rows and 5 variables:
6+
#' @format A \code{data.frame} object with 12 rows and 5 variables:
77
#' \describe{
88
#' \item{model}{all single models that can be computed in \pkg{biomod2}}
99
#' \item{type}{data type associated to the models}
10-
#' \item{package}{R package used}
11-
#' \item{func}{function used in the R package}
10+
#' \item{package}{\code{R} package used}
11+
#' \item{func}{function used in the \code{R} package}
1212
#' \item{train}{function called by \pkg{caret} for the tuning}
1313
#' }
14+
#'
15+
#' All single models available are the following :
16+
#'
17+
#' \itemize{
18+
#' \item ANN (\code{\link[nnet]{nnet}})
19+
#' \item CTA (\code{\link[rpart]{rpart}})
20+
#' \item FDA (\code{\link[mda]{fda}})
21+
#' \item GAM (\code{\link[gam]{gam}}, \code{\link[mgcv]{gam}} or \code{\link[mgcv]{bam}})
22+
#' \item GBM (\code{\link[gbm]{gbm}})
23+
#' \item GLM (\code{\link[stats]{glm}})
24+
#' \item MARS (\code{\link[earth]{earth}})
25+
#' \item MAXENT (\url{https://biodiversityinformatics.amnh.org/open_source/maxent/})
26+
#' \item MAXNET (\code{\link[maxnet]{maxnet}})
27+
#' \item RF (\code{\link[randomForest]{randomForest}})
28+
#' \item SRE (\code{\link{bm_SRE}})
29+
#' \item XGBOOST (\code{\link[xgboost]{xgboost}})
30+
#' }
1431

1532
"ModelsTable"
1633

@@ -90,7 +107,7 @@
90107
#' species. Presence/absence were derived from range maps downloaded at
91108
#' \href{https://www.iucnredlist.org/}{IUCN}.
92109
#'
93-
#' @format A data frame with 2488 rows and 10 variables:
110+
#' @format A \code{data.frame} object with 2488 rows and 10 variables:
94111
#' \describe{
95112
#' \item{X_WGS84}{Longitude}
96113
#' \item{Y_WGS84}{Latitude}

0 commit comments

Comments
 (0)
Please sign in to comment.