as.drugdose_lookups: Import or Convert a drugdose_lookups Table

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/importexport.R

Description

Converts its argument into an object of the class drugdose_lookups for use by the dose conversion algorithm.

Usage

1

Arguments

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.

Details

This function is used to pre-process the builtin-in lookups table as well as user-specified custom lookups in doseconvert.

Value

A data.table with class drugdose_lookups.

Author(s)

Anoop Shah

References

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/

See Also

lookups

Examples

1
2
3
4
5
# Import the raw table
data(lookups)

# Convert into the lookup table format
lookups <- as.drugdose_lookups(lookups)

CALIBERdrugdose documentation built on Aug. 5, 2020, 3 p.m.