Usage
name_lookup(query = NULL, rank = NULL,
highertaxon_key = NULL, status = NULL, extinct = NULL,
habitat = NULL, name_type = NULL, dataset_key = NULL,
nomenclatural_status = NULL, limit = 20, facet = NULL,
facet_only = NULL, facet_mincount = NULL,
facet_multiselect = NULL, callopts = list(),
verbose = FALSE, return = "all")
Arguments
query
Query term(s) for full text search.
rank
CLASS, CULTIVAR, CULTIVAR_GROUP, DOMAIN,
FAMILY, FORM, GENUS, INFORMAL, INFRAGENERIC_NAME,
INFRAORDER, INFRASPECIFIC_NAME, INFRASUBSPECIFIC_NAME,
KINGDOM, ORDER, PHYLUM, SECTION, SERIES, SPECIES, STRAIN,
SUBCLASS, SUBFAMILY, SUBFORM, SUBGENUS, SUB
highertaxon_key
Filters by any of the higher
Linnean rank keys. Note this is within the respective
checklist and not searching nub keys across all
checklists.
status
Filters by the taxonomic status as one of:
- ACCEPTED
- DETERMINATION_SYNONYM Used
for unknown child taxa referred to via spec, ssp, ...
- DOUBTFUL Treated as accepted, but doubtful whether
this is correct.
- HETEROTYPIC_SYNO
extinct
Filters by extinction status (a boolean,
e.g. extinct=true)
habitat
Filters by the habitat, though currently
only as boolean marine or not-marine (i.e. habitat=true
means marine, false means not-marine)
name_type
Filters by the name type as one of:
- BLACKLISTED surely not a scientific name.
- CANDIDATUS Candidatus is a component of the
taxonomic name for a bacterium that cannot be maintained
in a Bacteriology Culture Collection.
- CULTIVAR
dataset_key
Filters by the dataset's key (a uuid)
nomenclatural_status
Not yet implemented, but will
eventually allow for filtering by a nomenclatural status
enum
facet
A list of facet names used to retrieve the
100 most frequent values for a field. Allowed facets are:
dataset_key, highertaxon_key, rank, status, extinct,
habitat, and name_type. Additionally threat and
nomenclatural_status are legal values but not
facet_only
Used in combination with the facet
parameter. Set facet_only=true to exclude search
results.
facet_mincount
Used in combination with the facet
parameter. Set facet_mincount={#} to exclude facets with
a count less than {#}, e.g. http://bit.ly/1bMdByP only
shows the type value 'ACCEPTED' because the other
statuses have counts less than 7,000,000
facet_multiselect
Used in combination with the
facet parameter. Set facet_multiselect=true to still
return counts for values that are not currently filtered,
e.g. http://bit.ly/19YLXPO still shows all status values
even though status is being filtered by status=ACC
limit
Number of records to return
callopts
Further arguments passed on to the
GET
request. verbose
If TRUE, all data is returned as a list
for each element. If FALSE (default) a subset of the data
that is thought to be most essential is organized into a
data.frame.
return
One of data, meta, facets, or all. If data,
a data.frame with the data. facets returns the facets, if
facets=TRUE, or empy list if facets=FALSE. meta returns
the metadata for the entire call. all gives all data back
in a list.