set_taxonomy | R Documentation |
Format fields that contain taxonomic name information from kingdom to
species, as well as the common/vernacular name, to a tibble
using
Darwin Core Standard.
In practice this is no different from using mutate()
, but gives some
informative errors, and serves as a useful lookup for accepted column names in
the Darwin Core Standard.
set_taxonomy(
.df,
kingdom = NULL,
phylum = NULL,
class = NULL,
order = NULL,
family = NULL,
genus = NULL,
specificEpithet = NULL,
vernacularName = NULL,
.keep = "unused"
)
.df |
A |
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 |
vernacularName |
The common or vernacular name of the identified taxon. |
.keep |
Control which columns from .data are retained in the output.
Note that unlike |
Examples of specificEphithet
:
If scientificName
is Abies concolor
, the specificEpithet
is concolor
.
If scientificName
is Semisulcospira gottschei
, the specificEpithet
is gottschei
.
A tibble
with the requested columns added/reformatted.
set_scientific_name()
for adding scientificName
and authorship information.
df <- tibble::tibble(
scientificName = c("Crinia Signifera", "Crinia Signifera", "Litoria peronii"),
fam = c("Myobatrachidae", "Myobatrachidae", "Hylidae"),
ord = c("Anura", "Anura", "Anura"),
latitude = c(-35.27, -35.24, -35.83),
longitude = c(149.33, 149.34, 149.34),
eventDate = c("2010-10-14", "2010-10-14", "2010-10-14")
)
# Reformat columns to Darwin Core terms
df |>
set_scientific_name(
scientificName = scientificName
) |>
set_taxonomy(
family = fam,
order = ord
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.