format_digits: Format with a fixed number of digits, keeping trailing zeros

format_digitsR Documentation

Format with a fixed number of digits, keeping trailing zeros

Description

Shorthand for formatC(x, format="f", flag="#", digits=digits, ...).

Usage

format_digits(x, digits = NULL, na = NA_character_, ..., sign = FALSE)

Arguments

x

numeric

digits

number of digits to keep; passed to formatC()

na

replace NA with this value

...

passed to formatC()


BAAQMD/strtools documentation built on Nov. 23, 2023, 5:52 a.m.