Generic function to calculate the interval nearest to a possible dosing interval
Source:R/find_nearest_interval.R
find_nearest_interval.Rd
Generic function to calculate the interval nearest to a possible dosing interval
Usage
find_nearest_interval(
interval = NULL,
possible = c(4, 6, 8, 12, 24, 36, 48),
type = "absolute"
)
Examples
find_nearest_interval(19.7)
#> [1] 24
find_nearest_interval(19.7, c(6, 8, 12))
#> [1] 12