dictionary_search {dbGaPCheckup} | R Documentation |
This awareness function helps you search the data dictionary for a specific term; intended for use as an investigative aid to supplement other checks in this package.
dictionary_search(
DD.dict,
search.term = c("blood pressure"),
search.column = c("VARDESC")
)
DD.dict |
Data dictionary. |
search.term |
Search term. |
search.column |
Column of the data dictionary to search. |
Tibble containing dictionary rows in which the search term was detected in specified column or an error message if the search column could not be detected.
# Successful search
data(ExampleB)
dictionary_search(DD.dict.B, search.term=c("skinfold"), search.column=c("VARDESC"))
# Attempted search in wrong column
dictionary_search(DD.dict.B, search.term=c("skinfold"), search.column=c("VARIABLE_DESCRIPTION"))