Check the validity of terms listed in keywords.txt against controlled vocabularies, and receive suggestions for improving non-aligned terms.
validate_keywords(path, cv, interactive.mode = FALSE)
path | (character) Path to the directory containing keywords.txt. |
---|---|
cv | (character) A controlled vocabulary to search. Valid options are:
|
interactive.mode | (logical) Should a list of possible matches be returned to the user to select from? |
An updated version of keywords.txt with the controlled vocabulary name listed along side keywords for which a direct match was found. For each keyword that could not be matched, a set of options are listed in the RStudio Console Window that the user must manually select from. The results of this selection process are written to keywords.txt.