Description Usage Arguments Details Examples
Lookup table relating plant genera, families and orders along with number of species in each genus. Data persists across package installations.
1 2 3 4 5 6 7 8 9 10 11 12 | plant_lookup(version = NULL, include_counts = FALSE, family.tax = "apweb",
path = NULL)
plant_lookup_versions(local = TRUE, path = NULL)
plant_lookup_version_current_local(path = NULL)
plant_lookup_version_current_github(path = NULL)
get_most_recent_plant_lookup(path = NULL)
plant_lookup_del(version, path = NULL)
|
version |
Version number. The default will load the most
recent version on your computer or the most recent version known
to the package if you have never downloaded the data before.
With |
include_counts |
Logical: Include a column of number of
"accepted" species within each genus counts as
|
family.tax |
the value "ap.web" will return the family names from apweb otherwise the lookup will include the family names from the plant list. Currently there are 8 family names that differ between the two sources (e.g., Compositae in the plant list versus Asteraceae in ap.web) |
path |
Path to store the data at. If not given,
|
local |
Logical indicating if local or github versions should
be pulled. With any luck, |
The data within this lookup table comes from two sources:
1. The Plant List v1.1. (http://www.theplantlist.org/) for accepted genera to families and species richness within each genera. Note that we do not consider hybrids (e.g. Genus X species) as distinct species for this count while the plant list summary statistics do, so the the counts from this package will not line up exactly with the ones on the TPL website.
2. APWeb (http://www.mobot.org/MOBOT/research/APweb/) for family-level synonymies and family-to-order for all vascular plant families. Note that there is not currently order-level information available for Bryophytes.
These data are then currated–we correct some spelling errors, special character issues, genera listed in multiple families, family-level synonomy, and other issues that arise in assembling a resources like this. Details of the curation are at https://github.com/traitecoevo/taxonlookup
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #
# see the format of the resource
#
head(plant_lookup())
#
# or with number of species in each genus.
#
head(plant_lookup(include_counts = TRUE))
#
# load the data.frame into memory
#
pl<-plant_lookup(include_counts = TRUE)
#
# return family, order, and number of species for the genus Eucalyptus
#
pl$family[pl$genus=="Eucalyptus"]
pl$order[pl$genus=="Eucalyptus"]
pl$number.of.species[pl$genus=="Eucalyptus"]
#
# find the number of accepted species within the Myrtaceae
#
sum(pl$number.of.species[pl$family=="Myrtaceae"])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.