as.drugdose_lookups | R Documentation |
Converts its argument into an object of the class drugdose_lookups for use by the dose conversion algorithm.
as.drugdose_lookups(lookups)
lookups |
Either a drugdose_lookups object (in which case it is returned unchanged), a data.frame, data.table or filename of a csv file in the appropriate format, see 'Details' below. |
This function is used to pre-process the builtin-in lookups
table as well as user-specified custom lookups in doseconvert
.
A data.table with class drugdose_lookups
.
Anoop Shah
Shah AD, Martinez C. An algorithm to derive a numerical daily dose from unstructured text dosage instructions. Pharmacoepidemiol Drug Saf 2006; 15(3): 161-166. doi: 10.1002/pds.1151 http://onlinelibrary.wiley.com/doi/10.1002/pds.1151/
lookups
# Import the raw table
data(lookups)
# Convert into the lookup table format
lookups <- as.drugdose_lookups(lookups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.