View source: R/redbook_funcs.R
get_ndc_from_terms | R Documentation |
'get_ndc_from_name' returns the ndc code, or the corresponding redbook entries, for medications of a given name. The name provided is matched to the variables "genme" and "prodnme" in the redbook file.
get_ndc_from_terms(
terms,
return_all = FALSE,
redbook_path = "~/Data/redbook.csv"
)
terms |
A vector of medication names |
return_all |
A logical indicator of whether to return all values. Default value is set to FALSE (if FALSE only ndc codes are returned) |
redbook_path |
The path to the redbook file. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.