-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiomod3_class5_Wrap.R
52 lines (45 loc) · 1.86 KB
/
biomod3_class5_Wrap.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
## --------------------------------------------------------------------------- #
## BIOMOD.wrap.out ---------------------------------------------
## --------------------------------------------------------------------------- #
##' @name BIOMOD.wrap.out
##' @aliases BIOMOD.wrap.out-class
##' @author Helene Blancheteau
##'
##' @title \code{BIOMOD_Wrap()} output object class
##'
##' @description Class returned by \code{\link{BIOMOD_Wrap}}, and used by
##' \code{\link{BIOMOD_ProjectionWrap}}
##'
##'
##' @slot formated.data a \code{BIOMOD.formated.data} object
##' @slot single.models a \code{BIOMOD.models.out} object
##' @slot ensemble.models a \code{BIOMOD.ensemble.models.out} object
##'
##' @param object a \code{\link{BIOMOD.wrap.out}} object
##'
##'
##' @rdname BIOMOD.wrap.out
##' @export
##'
# Class Definition ---------------------------------------------------------
setClass("BIOMOD.wrap.out",
representation(formated.data = "BIOMOD.formated.data",
single.models = "BIOMOD.models.out",
ensemble.models = "BIOMOD.ensemble.models.out"),
validity = function(object){ return(TRUE) })
# Other functions ----------------------------------------------------------
## show.BIOMOD.wrap.out ---------------------------------------------
##'
##' @rdname BIOMOD.wrap.out
##' @importMethodsFrom methods show
##' @export
##'
setMethod('show', signature('BIOMOD.wrap.out'), function(object) {
.bm_cat("BIOMOD.wrap.out")
cat("\nsp.name :", [email protected]@sp.name, fill = .Options$width)
cat("\nexpl.var.names :", [email protected]@expl.var.names, fill = .Options$width)
cat("\n")
cat("\nSingle models computed:", toString([email protected]@models.computed), fill = .Options$width)
cat("\nEnsemble models computed:", toString([email protected]@em.computed), fill = .Options$width)
.bm_cat()
})