Skip to contents

Get trait values for the data from the Vault database

Usage

get_traits(
  con = NULL,
  classify_to = c("original", "species", "genus", "family"),
  verbose = TRUE
)

Arguments

con

A connection object created using open_vault()

classify_to

A character vector specifying the taxonomic level to classify the taxa to. Default is original

verbose

A logical value indicating whether to print messages. Default is TRUE

Value

A connection object with the data and database connection

Details

If the function is used after get_taxa(), the trait values will be returned only for the taxa present in the data. If you prefer to return all trait values, we recommend using get_traits() before get_taxa() in the pipe. In addition, it is important to set classify_to to the same value as in get_taxa().