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 CompadreDB
as.data.frame(x, ...)

# S3 method for CompadreDB
as_tibble(x)

# S3 method for CompadreDB
head(x, n = 6L, ...)

# S3 method for CompadreDB
tail(x, n = 6L, ...)

# S3 method for CompadreDB
names(x)

# S3 method for CompadreDB
dim(x)

# S3 method for CompadreDB
merge(x, y, ...)

NumberAcceptedSpecies(object)

# S4 method for CompadreDB
NumberAcceptedSpecies(object)

NumberStudies(object)

# S4 method for CompadreDB
NumberStudies(object)

NumberMatrices(object)

# S4 method for CompadreDB
NumberMatrices(object)

Arguments

x, object

A CompadreDB object

...

additional arguments

n

The number of rows to extract

y

A data.frame to merge with x