Skip to contents

Format fields that contain information about who made a specific observation of an organism.

Usage

use_observer(.df, recordedBy = NULL, recordedByID = NULL, .keep = "unused")

Arguments

.df

a data.frame or tibble that the column should be appended to.

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 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.

Value

A tibble with the requested fields added.

Details

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.

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")