make_datelife_query2 {datelife} | R Documentation |
Go from taxon names to a datelifeQuery
object
Description
Go from taxon names to a datelifeQuery
object
Usage
make_datelife_query2(
input = c("Rhea americana", "Pterocnemia pennata", "Struthio camelus"),
get_spp_from_taxon = FALSE,
reference_taxonomy = "ott",
...
)
Arguments
input |
Taxon names as one of the following:
|
get_spp_from_taxon |
Whether to search ages for all species belonging to a
given taxon or not. Default to |
reference_taxonomy |
A character vector specifying the reference taxonomy to use for TNRS. Options are "ott", "ncbi", "gbif" or "irmng". The function defaults to "ott". |
... |
Arguments passed on to
|
Details
It processes phylo
objects and newick character string inputs
with input_process()
. If input
is a multiPhylo
object, only the first phylo
element will be used. Similarly, if an input
newick character string has multiple trees,
only the first one will be used.
Value
A datelifeQuery
object, which is a list of four elements:
- $input_names
A character vector of input taxon names.
- $tnrs_names
A character vector of taxon names processed with TNRS.
- $ott_ids
A numeric vector of OTT ids.
- $phy
A
phylo
object orNA
, if input is not a tree.