create_keyword_set: Creates Keyword Set Element

View source: R/keyword-set-element.R

create_keyword_setR Documentation

Creates Keyword Set Element

Description

Takes in keywords and associated keyword thesaurus and creates a keyword set according to EML standards.

Usage

create_keyword_set(keyword_metadata)

Arguments

keyword_metadata

A dataframe containing keyword and keywordThesuraus (if keyword is from a controlled vocabulary). The dataframe must have a keyword column and a keywordThesaurus column. If keywords are not from a controlled vocabulary please leave keywordThesaurus blank or NA.

Value

The keyword list that can be appended to a dataset or project list.

Controlled Vocabularies

In order to promote consistency, please search the following resources for keywords:

LTER - Long Term Ecological Research.

AGROVOC - A controlled vocabulary covering all areas of interest of the Food and Agriculture Organization (FAO) of the United Nations, including food, nutrition, agriculture, fisheries, forestry, environment.

U.S. Board on Geographic Names - USGS place names dictionary.

Examples

keyword_metadata <- dplyr::tibble(keyword = c("CVPIA", "dog", "shark", "cat"), 
                                  keywordThesaurus = c(NA, "pet", "ocean", "pet"))
create_keyword_set(keyword_metadata)

keyword_metadata <- dplyr::tibble(keyword = c("CVPIA", "dog", "shark", "cat"), 
                                  keywordThesaurus = c(NA, NA, NA, NA))                                   
create_keyword_set(keyword_metadata)

CVPIA-OSC/EMLaide documentation built on Aug. 25, 2023, 8:53 a.m.