fmt_sprintf: Rounding with the 'sprintf()' function in the 'fmt' argument.

View source: R/fmt_factory.R

fmt_sprintfR Documentation

Rounding with the sprintf() function in the fmt argument.

Description

Rounding with the sprintf() function in the fmt argument.

Usage

fmt_sprintf(fmt)

Arguments

fmt

A string to control sprintf(), such as "%.3f" to keep 3 decimal digits. See ?sprintf.

Value

A function that takes an object and returns a string with the object formatted using sprintf.


modelsummary documentation built on Aug. 25, 2025, 9:51 a.m.