format_valuef function

Function factory for formatting values

Function factory for formatting values

format_valuef generates functions that format values so that they print out with the desired number of digits.

format_valuef(digits)

Arguments

  • digits: number of digits to use

Returns

Returns a function that takes an atomic vector as its argument and returns it formatted to character with digits decimals.

  • Maintainer: Savi Virolainen
  • License: GPL-3
  • Last published: 2025-04-07

Useful links