format_digits: Format digits to be the same length.

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Format digits to be the same length.

Usage

1

Arguments

x

a numeric object

n

the number of digits to follow the decimal

Value

a character representation of the original input with the formatted digits

Examples

1
format_digits(1.34523435353, 2)

nt-williams/hamburger documentation built on Jan. 23, 2020, 1:28 p.m.