create_keyword_set.Rd
Takes in keywords and associated keyword thesaurus and creates a keyword set according to EML standards.
create_keyword_set(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.
The keyword list that can be appended to a dataset or project list.
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.
keyword_metadata <- dplyr::tibble(keyword = c("CVPIA", "dog", "shark", "cat"),
keywordThesaurus = c(NA, "pet", "ocean", "pet"))
create_keyword_set(keyword_metadata)
#> [[1]]
#> [[1]]$keyword
#> [1] "CVPIA"
#>
#>
#> [[2]]
#> [[2]]$keyword
#> [1] "dog" "cat"
#>
#> [[2]]$keywordThesaurus
#> [1] "pet"
#>
#>
#> [[3]]
#> [[3]]$keyword
#> [1] "shark"
#>
#> [[3]]$keywordThesaurus
#> [1] "ocean"
#>
#>
keyword_metadata <- dplyr::tibble(keyword = c("CVPIA", "dog", "shark", "cat"),
keywordThesaurus = c(NA, NA, NA, NA))
create_keyword_set(keyword_metadata)
#> [[1]]
#> [[1]]$keyword
#> [1] "CVPIA" "dog" "shark" "cat"
#>
#>