find_nearest_interval: Generic function to calculate the interval nearest to a...

View source: R/find_nearest_interval.R

find_nearest_intervalR Documentation

Generic function to calculate the interval nearest to a possible dosing interval

Description

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"
)

Arguments

interval

dose value

possible

available increments of dose

type

pick either nearest absolute interval, or nearest lower, or nearest higher interval.

Examples

find_nearest_interval(19.7)
find_nearest_interval(19.7, c(6, 8, 12))

InsightRX/clinPK documentation built on June 14, 2025, 9:48 p.m.