R/string-format.R

Defines functions .fmt .p_n .p_a

## string-format.R: String formatting helpers
##
## This file is part of the cvLM package.

.p_a <- function(...) paste0(..., collapse = " & ")
.p_n <- function(...) paste0(..., collapse = "")

.fmt <- function(x, n.digits, big.mark) {
  format(
    round(x, n.digits),
    nsmall = n.digits,
    big.mark = big.mark,
    trim = TRUE
  )
}

Try the cvLM package in your browser

Any scripts or data that you put into this service are public.

cvLM documentation built on Feb. 3, 2026, 5:06 p.m.