Skip to contents

[Experimental]

Help function to format numeric data as strings and concatenate into a single character.

Usage

h_fmt_est(num1, num2, digits = c(2, 2), width = c(6, 6))

Arguments

num1

(numeric)
first numeric input.

num2

(numeric)
second numeric input.

digits

(integer)
the desired number of digits after the decimal point.

width

(integer)
the total field width.

Value

A single character.

See also

Examples

h_fmt_est(num1 = 3.14, num2 = 3.1415, width = c(4, 4))
#> [1] "3.14 (3.14)"