freqNum {EHR} | R Documentation |
This function converts the frequency entity to numeric.
freqNum(x)
x |
character vector of extracted frequency values |
numeric vector
f <- stdzFreq(c('in the morning', 'four times a day', 'with meals'))
freqNum(f)