num_print: Numbering printing with signed zeroes and trailing zeroes

Description Usage Arguments

View source: R/programming_helpers.R

Description

This function will print exactly the amount of digits requested as well as signed zeroes when appropriate (e.g, -0.00).

Usage

1
num_print(x, digits = getOption("jtools-digits", 2), format = "f")

Arguments

x

The number(s) to print

digits

Number of digits past the decimal to print

format

equal to "d" (for integers), "f", "e", "E", "g", "G", "fg" (for reals). Default is "f"


jtools documentation built on Sept. 5, 2021, 5:51 p.m.