Skip to contents

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).

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)

# 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

y

A data.frame to merge with x

Value

No return value, called for side effects