powered by
This function standardizes the dose entity.
stdzDose(x)
numeric vector
character vector of extracted dose values
Some dose strings may include multiple values and additional interpretation may be needed. For example ‘2-1’ likely indicates a dose of 2 followed by a dose of 1. Currently it would be converted to the average of 1.5.
stdzDose(c('one tablet', '1/2 pill', '1-3 tabs'))
Run the code above in your browser using DataLab