h_get_formatted_dosegrid: Format a 'doseGrid' for Printing

View source: R/helpers_knitr_GeneralData.R

h_get_formatted_dosegridR Documentation

Format a doseGrid for Printing

Description

Format a doseGrid for Printing

Usage

h_get_formatted_dosegrid(grid, units = NA, fmt = NA, ...)

Arguments

grid

(numeric)
the dose grid

units

(character)
The units in which the values in doseGrid are

fmt

(character)
The format used to display values in doseGrid. If NA, grid values are not pre-formatted

...

not used at present measured. Appended to each value in doseGrid when knit_printed. The default, NA, omits the units.

Value

A character string containing the formatted dose grid. If the grid is c(1, 2, 3) and units is "mg", the returned value is "1 mg, 2 mg and 3 mg".


Roche/crmPack documentation built on June 30, 2024, 1:31 a.m.