Helper Functions"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Formatting Helper Functions

The fmtr package also contains several formatting helper functions. These functions help with common formatting styles seen in statistical reports. For example, a range from 1 to 10 is commonly displayed as "1 - 10", with a hyphen separating the minimum from the maximum. To accomplish this formatting easily, the package provides a fmt_range() function that both calculates the range and formats it in the desired manner.

Below is a complete list of the formatting helper functions. See the help documentation for additional details:



Try the fmtr package in your browser

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

fmtr documentation built on July 25, 2021, 9:06 a.m.