Add taxonomic information to a tibble
use_taxonomy.Rd
Format fields that contain taxonomic name information from kingdom to
species, as well as the common/vernacular name, to a tibble
.
Usage
use_taxonomy(
.df,
kingdom = NULL,
phylum = NULL,
class = NULL,
order = NULL,
family = NULL,
genus = NULL,
specificEpithet = NULL,
vernacularName = NULL,
.keep = "unused"
)
Arguments
- .df
a
data.frame
ortibble
that the column should be appended to.- kingdom
The kingdom name of identified taxon.
- phylum
The phylum name of identified taxon.
- class
The class name of identified taxon.
- order
The order name of identified taxon.
- family
The family name of identified taxon.
- genus
The genus name of the identified taxon.
- specificEpithet
The name of the first species or species epithet of the
scientificName
. See documentation- vernacularName
The common or vernacular name of the identified taxon.
- .keep
Control which columns from .data are retained in the output. Note that unlike
dplyr::mutate()
, which defaults to"all"
this defaults to"unused"
; i.e. only keeps Darwin Core fields, and not those fields used to generate them.
Details
In
practice this is no different from using mutate()
, but gives some
informative errors, and serves as a useful lookup for taxonomic names in
the Darwin Core Standard.
Examples of specificEphithet
:
If
scientificName
isAbies concolor
, thespecificEpithet
isconcolor
.If
scientificName
isSemisulcospira gottschei
, thespecificEpithet
isgottschei
.
See also
use_scientific_name()
for adding scientificName
and authorship information.