This page describes a variety of methods that can be used with CompadreDB
objects, including common data frame operations (head, names,
colnames, print, cbind, rbind, and merge),
conversion methods (as.data.frame and as_tibble), and methods
to calculate the number of species
(NumberAcceptedSpecies), studies (NumberStudies), or matrices
(NumberMatrices).
Usage
# S3 method for class 'CompadreDB'
as.data.frame(x, ...)
# S3 method for class 'CompadreDB'
as_tibble(
x,
.rows = NULL,
.name_repair = c("check_unique", "unique", "universal", "minimal"),
rownames = NULL,
...
)
# S3 method for class 'CompadreDB'
head(x, n = 6L, ...)
# S3 method for class 'CompadreDB'
tail(x, n = 6L, ...)
# S3 method for class 'CompadreDB'
names(x)
# S3 method for class 'CompadreDB'
dim(x)
# S4 method for class 'CompadreDB'
colnames(x, do.NULL = TRUE, prefix = "col")
# S3 method for class 'CompadreDB'
print(x, ...)
# S3 method for class 'CompadreDB'
rbind(..., deparse.level = 1, fill = FALSE)
# S3 method for class 'CompadreDB'
cbind(..., deparse.level = 1)
# S3 method for class 'CompadreDB'
droplevels(x, ...)
# S3 method for class 'CompadreDB'
merge(x, y, ...)
NumberAcceptedSpecies(object)
# S4 method for class 'CompadreDB'
NumberAcceptedSpecies(object)
NumberStudies(object)
# S4 method for class 'CompadreDB'
NumberStudies(object)
NumberMatrices(object)
# S4 method for class 'CompadreDB'
NumberMatrices(object)Arguments
- x, object
A CompadreDB object
- ...
additional arguments
- .rows
passed to [tibble::as_tibble()]
- .name_repair
passed to [tibble::as_tibble()]
- rownames
passed to [tibble::as_tibble()]
- n
The number of rows to extract
- do.NULL, prefix
passed to [base::colnames()]
- deparse.level
passed to [base::cbind()] or [base::rbind()]
- fill
passed to [cdb_rbind()]; if `TRUE`, missing columns are filled with `NA`
- y
A data.frame to merge with x