eml_arcrc_add_annotation: Add an Arctic Report Card annotation to a dataset

View source: R/eml.R

eml_arcrc_add_annotationR Documentation

Add an Arctic Report Card annotation to a dataset

Description

Creates an annotation from the Arctic Report Card ontology here and inserts the annotation into the EML document doc while retaining any existing annotations such as the sensitivity annotations or dataset categorization. For a list of available essay topics or key variables, see link above.

Usage

eml_arcrc_add_annotation(doc, property, label)

Arguments

doc

(emld) An EML document

property

(character) One of two properties: "isAbout" for key variables or "influenced" for essay topics

label

(character) One or more labels in title case from the ADCAD ontology.

Value

doc (emld) An EML document with annotation added

Examples

library(EML)
# read in any EML document
doc <- read_eml(system.file("extdata/strix-pacific-northwest.xml", package="dataone"))
# add the dataset categories
doc <- eml_arcrc_add_annotation(doc, "isAbout", c("sea ice thickness", "sea surface temperature"))


NCEAS/arcticdatautils documentation built on July 13, 2024, 11:02 a.m.