formatMinWidth: Format numeric values to minimize the printing width

formatMinWidthR Documentation

Format numeric values to minimize the printing width

Description

Special values ('NaN', 'Inf', '-Inf', '0') are shown as-is; 'NA' uses 'naValue'.

Usage

formatMinWidth(x, digits = 3, naValue = "NA")

Arguments

x

The numeric vector to convert

digits

The number of significant digits to show

naValue

The value to return if 'is.na(x)'

Value

A character vector converting the numbers with minimum width


nlmixr2est documentation built on Aug. 5, 2026, 1:11 a.m.