set_observer | R Documentation |
Format fields that contain information about who made a specific observation
of an organism 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 fields in
the Darwin Core Standard.
set_observer(.df, recordedBy = NULL, recordedByID = NULL, .keep = "unused")
.df |
A |
recordedBy |
Names of people, groups, or organizations responsible for recording the original occurrence. The primary collector or observer should be listed first. |
recordedByID |
The globally unique identifier for the person, people, groups, or organizations responsible for recording the original occurrence. |
.keep |
Control which columns from .data are retained in the output.
Note that unlike |
Examples of recordedBy
values:
José E. Crespo
Examples of recordedByID
values:
c("https://orcid.org/0000-0002-1825-0097", "https://orcid.org/0000-0002-1825-0098")
A tibble
with the requested fields added/reformatted.
df <- tibble::tibble(
name = c("Crinia Signifera", "Crinia Signifera", "Litoria peronii"),
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"),
observer = c("David Attenborough", "David Attenborough", "David Attenborough")
)
# Reformat columns to Darwin Core terms
df |>
set_observer(
recordedBy = observer
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.