find_factor {clinPK} | R Documentation |
Helper function to grab the conversion factor from an input unit and given list
Description
Helper function to grab the conversion factor from an input unit and given list
Usage
find_factor(full_unit, units = NULL, prefix = "^")
Arguments
full_unit |
full unit, e.g. "mL/min/kg" |
units |
unit specification list, e.g. 'list("ml" = 1/1000, "dl" = 1/10, "l" = 1)' |
prefix |
prefix used in matching units, e.g. "^" only matches at start of string while "_" matches units specified as "/" |
[Package clinPK version 0.13.0 Index]