format_digits: Format digits to be a specific length

Description Usage Arguments Value Examples

View source: R/formatix.R

Description

Format digits to be a specific 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/formatix documentation built on April 4, 2020, 6:11 p.m.