find_nearest_dose: Generic function to calculate the dose nearest to a specific...

View source: R/find_nearest_dose.R

find_nearest_doseR Documentation

Generic function to calculate the dose nearest to a specific dose unit increment

Description

Generic function to calculate the dose nearest to a specific dose unit increment

Usage

find_nearest_dose(dose = NULL, increment = 250, type = "round")

Arguments

dose

dose value

increment

available increments of dose

type

how to round, one of 'round', 'floor', or 'ceiling'

Examples

find_nearest_dose(573)
find_nearest_dose(573, increment = 50)

clinPK documentation built on May 29, 2024, 3:50 a.m.