star_balance: Prefix text with figure spaces to balance star text

View source: R/formatting.R

star_balanceR Documentation

Prefix text with figure spaces to balance star text

Description

Prefix text with figure spaces to balance star text

Usage

star_balance(x, star = "\\*", superscript = TRUE)

Arguments

x

character vector

star

star text

superscript

Place superscript text if TRUE

Value

character vector

Examples

# Starred values get one figure space per star on the left,
# so that the numbers line up when the column is centered
star_balance(c(".32", ".04\\^\\*\\^", ".005\\^\\*\\*\\^"))

apa7 documentation built on Dec. 1, 2026, 5:06 p.m.