CompadreDB-Methods | R Documentation |
This page describes a variety of methods that can be used with CompadreDB
objects, including common data frame operations (head
, names
,
and merge
), conversion methods (as.data.frame
and
as_tibble
), and methods to calculate the number of species
(NumberAcceptedSpecies
), studies (NumberStudies
), or matrices
(NumberMatrices
).
## 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)
## S3 method for class 'CompadreDB'
merge(x, y, ...)
NumberAcceptedSpecies(object)
## S4 method for signature 'CompadreDB'
NumberAcceptedSpecies(object)
NumberStudies(object)
## S4 method for signature 'CompadreDB'
NumberStudies(object)
NumberMatrices(object)
## S4 method for signature 'CompadreDB'
NumberMatrices(object)
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 |
y |
A data.frame to merge with x |
No return value, called for side effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.