Learn R Programming

modelsummary (version 2.5.0)

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

Description

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

Usage

fmt_sprintf(fmt)

Value

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

Arguments

fmt

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