View source: R/lookup_intervals.R
lookup_intervals | R Documentation |
lookup intervals is a vectorized function that returns the intervals associated with provided dosing frequency information
lookup_intervals(.freq, .freq_list = NULL)
.freq |
vector of frequencies to provide II's |
.freq_list |
named list of frequencies and their corresponding II |
.freq_list allows one to override the default values. The current supported intervals are: list( "ONCE" = 0, "QD" = 24, "BID" = 12, "TID" = 8 )
If a frequency value is provided, but not in the frequency list, an NA value is returned
lookup_intervals("ONCE")
lookup_intervals(c("ONCE", "BID", "TID"))
lookup_intervals(c("ONCE", "NOTRECOGNIZED", "BID", "TID"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.