Skip to content

Commit 7af8bec

Browse files
committed
Update documentation
1 parent 5c02ebf commit 7af8bec

File tree

8 files changed

+53
-62
lines changed

8 files changed

+53
-62
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Description: An easy way to examine archaeological count data. This
4343
visualize count data and statistical thresholds: rank vs abundance
4444
plots, heatmaps, Ford (1962) and Bertin (1977) diagrams.
4545
License: GPL-3
46-
URL: https://packages.tesselle.org/tabula, https://github.com/tesselle/tabula
46+
URL: https://packages.tesselle.org/tabula/, https://github.com/tesselle/tabula
4747
BugReports: https://github.com/tesselle/tabula/issues
4848
Depends:
4949
R (>= 3.3)

R/AllClasses.R

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ setOldClass("dist")
88
#' Diversity Index
99
#'
1010
#' 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.
1212
#' @slot values A [`numeric`] vector giving the diversity index values.
1313
#' @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).
1617
#' @slot method A [`character`] string specifying the method used.
1718
#' @section Subset:
1819
#' In the code snippets below, `x` is a `DiversityIndex` object.
@@ -76,37 +77,30 @@ NULL
7677
#' Partial Bootstrap CA
7778
#'
7879
#' 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.
9396
#' @section Subset:
9497
#' In the code snippets below, `x` is a `RefineCA` object.
9598
#' \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.}
10699
#' \item{`x[[i]]`}{Extracts information from a slot selected by subscript `i`.
107100
#' `i` is a length-one [`character`] vector. Returns the corresponding slot
108101
#' values.}
109102
#' }
103+
#' @seealso [`dimensio::CA-class`]
110104
#' @author N. Frerebeau
111105
#' @family class
112106
#' @docType class
@@ -116,10 +110,10 @@ NULL
116110
slots = c(
117111
row_chull = "matrix",
118112
row_length = "numeric",
119-
row_keep = "numeric",
113+
row_keep = "integer",
120114
column_chull = "matrix",
121115
column_length = "numeric",
122-
column_keep = "numeric",
116+
column_keep = "integer",
123117
cutoff = "numeric"
124118
),
125119
contains = "CA"

R/coerce.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ NULL
55
# To data.frame ================================================================
66
#' @method as.data.frame DiversityIndex
77
#' @export
8-
as.data.frame.DiversityIndex <- function(x, ..., stringsAsFactors = default.stringsAsFactors()) {
8+
as.data.frame.DiversityIndex <- function(x, ...) {
99
data.frame(
1010
size = x@size,
1111
index = x@values,

R/index_diversity.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ simulate_diversity <- function(object, method, quantiles = TRUE,
127127
if (progress_bar) close(pbar)
128128

129129
simulated <- do.call(rbind, simulated)
130-
simulated <- cbind(size = sample_sizes, simulated)
130+
simulated <- cbind(`size` = sample_sizes, simulated)
131131

132132
methods::initialize(index, simulation = simulated)
133133
}
@@ -148,6 +148,7 @@ simulate_diversity <- function(object, method, quantiles = TRUE,
148148
#' @param na.rm A [`logical`] scalar: should missing values be removed
149149
#' before the quantiles are computed?
150150
#' @param ... Further parameters to be passed to `method`.
151+
#' @return A [`numeric`] vector.
151152
#' @keywords internal
152153
#' @noRd
153154
sim <- function(size, prob, method, n = 1000, level = 0.80,

codemeta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"codeRepository": "https://github.com/tesselle/tabula",
1111
"relatedLink": [
1212
"https://CRAN.R-project.org/package=tabula",
13-
"https://packages.tesselle.org/tabula"
13+
"https://packages.tesselle.org/tabula/"
1414
],
1515
"issueTracker": "https://github.com/tesselle/tabula/issues",
1616
"license": "https://spdx.org/licenses/GPL-3.0",
@@ -297,7 +297,7 @@
297297
}
298298
}
299299
],
300-
"fileSize": "1906.464KB",
300+
"fileSize": "1905.615KB",
301301
"releaseNotes": "https://github.com/tesselle/tabula/blob/master/NEWS.md",
302302
"readme": "https://github.com/tesselle/tabula/blob/master/README.md"
303303
}

man/DiversityIndex.Rd

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/RefineCA-class.Rd

Lines changed: 19 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tabula-package.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)