allometries_get_data: Access to the tables in the allometries database

View source: R/lfcAllometries.R

allometries_get_dataR Documentation

Access to the tables in the allometries database

Description

allometries_get_data is a wrapper for the $get_data method of lfcAllometries objects. See also allometries.

Usage

allometries_get_data(object, table_name = "allometries")

Arguments

object

lfcAllometries object, as created by allometries

table_name

character vector of lenght 1 indicating the requested table name. Only value available at the moment is "allometries"

Details

Connection to database can be slow. Tables retrieved from the db are stored in a temporary cache inside the lfcAllometries object created by allometries, making subsequent calls to the same table are faster.

Value

A tbl object

See Also

Other Allometries functions: allometries_calculate(), allometries_description(), allometries()

Examples

if (interactive()) {
  allomdb <- allometries()
  # tibble
  allometries_get_data(allomdb, 'allometries')

  # we can use pipes
  allomdb |>
    allometries_get_data('allometries')

  # allomdb is an R6 object, so the previous examples are the same as:
  allomdb$get_data('allometries')
}


MalditoBarbudo/lfcdata documentation built on May 2, 2023, 10:30 p.m.