Joins the woody / herbaceous classification of Zanne et al. (2014) to a
taxify() result by looking up accepted_name. This is the source-named
door for the Zanne Global Woodiness Database; for woodiness reconciled across
every source that carries it (Zanne, GIFT), use add_trait() with
"woodiness".
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. Seeenrichment_cols.- verbose
Logical. Default
TRUE.
Value
The same data.frame with an additional column:
- woodiness
One of
"woody","herbaceous","variable", orNAif not in the dataset.
References
Zanne AE et al. (2014) Three keys to the radiation of angiosperms into freezing environments. Nature 506:89-92.
See also
add_trait() for woodiness harmonized across sources.
Examples
# Runs offline against the bundled example database.
old <- options(taxify.data_dir = taxify_example_data())
taxify("Quercus robur") |>
add_zanne()
options(old)