h_format_dec: Decimal formatting

View source: R/utils.R

h_format_decR Documentation

Decimal formatting

Description

Decimal formatting

Usage

h_format_dec(digits, format, ne = NULL)

Arguments

digits

(integer) number of digits.

format

(string) describing how the numbers should be formatted following the sprintf syntax.

ne

(string) that should replace actual value. If NULL, no replacement is performed.

Value

function formatting numbers with the defined format.

Examples

fun <- h_format_dec(c(1, 1), "%s - %s")
fun(c(123, 567.89))

chevron documentation built on June 20, 2025, 5:08 p.m.