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)

Arguments

grid

(numeric)
the dose grid

units

(character)
The units in which the values in doseGrid are 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 April 30, 2024, 3:19 p.m.