h_fmt_num {mcradds}R Documentation

Format Numeric Data

Description

[Experimental]

Help function to format numeric data with formatC function.

Usage

h_fmt_num(x, digits, width = digits + 4)

Arguments

x

(numeric)
numeric input.

digits

(integer)
the desired number of digits after the decimal point (format = "f").

width

(integer)
the total field width.

Value

A character object with specific digits and width.

See Also

formatC()

Examples

h_fmt_num(pi * 10^(-2:2), digits = 2, width = 6)

[Package mcradds version 1.1.0 Index]