View source: R/find_nearest_interval.R
find_nearest_interval | R Documentation |
Generic function to calculate the interval nearest to a possible dosing interval
find_nearest_interval(
interval = NULL,
possible = c(4, 6, 8, 12, 24, 36, 48),
type = "absolute"
)
interval |
dose value |
possible |
available increments of dose |
type |
pick either 'nearest' absolute interval, or nearest 'lower', or nearest 'higher' interval. |
find_nearest_interval(19.7)
find_nearest_interval(19.7, c(6, 8, 12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.