eml_categorize_dataset: Categorize a dataset with an annotation

View source: R/eml.R

eml_categorize_datasetR Documentation

Categorize a dataset with an annotation

Description

Creates an annotation from the ADC Academic Disciplines ontology here and inserts the annotation into the EML document doc while retaining any existing annotations such as the sensitivity annotations. For a list of available disciplines, see link above.

Usage

eml_categorize_dataset(doc, discipline)

Arguments

doc

(emld) An EML document

discipline

(character) One or more disciplines 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_categorize_dataset(doc, c("Soil Science", "Ecology"))


NCEAS/arcticdatautils documentation built on Aug. 28, 2023, 12:10 p.m.