@@ -8,11 +8,12 @@ setOldClass("dist")
8
8
# ' Diversity Index
9
9
# '
10
10
# ' An S4 class to represent a diversity measure.
11
- # ' @slot data A [`numeric `] matrix of count data .
11
+ # ' @slot names A [`character `] vector giving the sample names .
12
12
# ' @slot values A [`numeric`] vector giving the diversity index values.
13
13
# ' @slot size A [`integer`] vector giving the sample sizes.
14
- # ' @slot simulation A [`numeric`] matrix giving the diversity measures for the
15
- # ' simulated assemblage.
14
+ # ' @slot simulation A four columns [`numeric`] matrix giving the diversity
15
+ # ' measures for the simulated assemblage (sample `size`, `mean` estimate,
16
+ # ' `lower` and `upper` boundaries of the confidence interval).
16
17
# ' @slot method A [`character`] string specifying the method used.
17
18
# ' @section Subset:
18
19
# ' In the code snippets below, `x` is a `DiversityIndex` object.
76
77
# ' Partial Bootstrap CA
77
78
# '
78
79
# ' An S4 class to store partial bootstrap correspondence analysis results.
79
- # ' @slot row_chull A list of length three giving the vertices coordinates
80
- # ' (`x`, `y`) of the samples convex hull and a identifier
81
- # ' (\code{id}) to link each row to a sample.
82
- # ' @slot column_chull A list of length three giving the vertices coordinates
83
- # ' (`x`, `y`) of the variables convex hull and a identifier
84
- # ' (\code{id}) to link each row to a variable.
85
- # ' @slot row_lengths A list of two named [`numeric`] vectors giving the
86
- # ' convex hull maximum dimension length of samples and variables, respectively.
87
- # ' @slot column_lengths A list of two named [`numeric`] vectors giving the
88
- # ' convex hull maximum dimension length of samples and variables, respectively.
89
- # ' @slot cutoff A length-two [`numeric`] vector giving the cutoff
90
- # ' value for samples and variables selection, respectively.
91
- # ' @slot keep A list of two [`integer`] vectors giving the subscript
92
- # ' of the samples and variables to be kept, respectively.
80
+ # ' @slot row_chull A three columns [`numeric`] matrix giving the vertices
81
+ # ' coordinates (`x`, `y`) of the samples convex hull and a identifier (`id`) to
82
+ # ' link each row to a sample.
83
+ # ' @slot row_lengths A named [`numeric`] vector giving the convex hull maximum
84
+ # ' dimension length of samples.
85
+ # ' @slot row_keep An [`integer`] vector giving the subscript of the samples to
86
+ # ' be kept.
87
+ # ' @slot column_chull A three columns [`numeric`] matrix giving the vertices
88
+ # ' coordinates (`x`, `y`) of the variables convex hull and a identifier (`id`)
89
+ # ' to link each row to a variable.
90
+ # ' @slot column_lengths A [`numeric`] vector giving the convex hull maximum
91
+ # ' dimension length of variables.
92
+ # ' @slot column_keep An [`integer`] vector giving the subscript of the variables
93
+ # ' to be kept.
94
+ # ' @slot cutoff A length-two [`numeric`] vector giving the cutoff value for
95
+ # ' samples and variables selection, respectively.
93
96
# ' @section Subset:
94
97
# ' In the code snippets below, `x` is a `RefineCA` object.
95
98
# ' \describe{
96
- # ' \item{\code{x[i, j, drop]}}{Extracts information from a slot selected by
97
- # ' subscript `i` thru `j` (see examples). `i` should be one of
98
- # ' "\code{rows}" or "\code{columns}". Any unambiguous substring can be
99
- # ' given. `j` is a [`numeric`], [`integer`] or
100
- # ' [`character`] vector or empty (missing) or `NULL`.
101
- # ' Numeric values are coerced to [`integer`] as by
102
- # ' [as.integer()] (and hence truncated towards zero). Character
103
- # ' vectors will be matched to the name of the elements. An empty index
104
- # ' (a comma separated blank) indicates that all entries in that dimension are
105
- # ' selected.}
106
99
# ' \item{`x[[i]]`}{Extracts information from a slot selected by subscript `i`.
107
100
# ' `i` is a length-one [`character`] vector. Returns the corresponding slot
108
101
# ' values.}
109
102
# ' }
103
+ # ' @seealso [`dimensio::CA-class`]
110
104
# ' @author N. Frerebeau
111
105
# ' @family class
112
106
# ' @docType class
@@ -116,10 +110,10 @@ NULL
116
110
slots = c(
117
111
row_chull = " matrix" ,
118
112
row_length = " numeric" ,
119
- row_keep = " numeric " ,
113
+ row_keep = " integer " ,
120
114
column_chull = " matrix" ,
121
115
column_length = " numeric" ,
122
- column_keep = " numeric " ,
116
+ column_keep = " integer " ,
123
117
cutoff = " numeric"
124
118
),
125
119
contains = " CA"
0 commit comments