lookup_intervals: lookup intervals is a vectorized function that returns the...

View source: R/lookup_intervals.R

lookup_intervalsR Documentation

lookup intervals is a vectorized function that returns the intervals associated with provided dosing frequency information

Description

lookup intervals is a vectorized function that returns the intervals associated with provided dosing frequency information

Usage

lookup_intervals(.freq, .freq_list = NULL)

Arguments

.freq

vector of frequencies to provide II's

.freq_list

named list of frequencies and their corresponding II

Details

.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

Examples

lookup_intervals("ONCE")
lookup_intervals(c("ONCE", "BID", "TID"))
lookup_intervals(c("ONCE", "NOTRECOGNIZED", "BID", "TID"))

qPharmetra/PMDatR documentation built on April 7, 2024, 5:42 p.m.