Skip to contents

Joins shared bird/mammal frugivore traits to a taxify() result by accepted_name.

Usage

add_frugivoria(x, cols = NULL, verbose = TRUE)

Arguments

x

A data.frame returned by taxify().

cols

Which columns to attach: NULL (default) the curated set, "all" every column the source carries, or a character vector of names. See enrichment_cols.

verbose

Logical. Default TRUE.

Value

The same data.frame with frugivoria_ columns: categorical taxon_group, diet_category; numeric diet_breadth, body_mass_g, body_size_mm, longevity, generation_time.

Details

Source: Gerstner et al. (2023) Frugivoria (EDI, CC-BY 4.0).

References

Gerstner BE et al. (2023) Frugivoria: a trait database for birds and mammals exhibiting frugivory across contiguous Neotropical moist forests. EDI (edi.1220.5).

Examples

if (FALSE) { # \dontrun{
taxify("Ramphastos toco", backbone = "gbif") |>
  add_frugivoria()
} # }