sig_pad: Format to significant digits and pad to equal string width

View source: R/utils.R

sig_padR Documentation

Format to significant digits and pad to equal string width

Description

Format to significant digits and pad to equal string width

Usage

sig_pad(x, sig = 3L, na = NA_character_)

Arguments

x

Numeric vector.

sig

Integer >= 1. Significant digits.

na

Character to use for NA values.

Value

Character vector with equal nchar (non-NA values), left-padded with spaces.


STMr documentation built on Jan. 22, 2026, 1:07 a.m.