Skip to contents

Format values

Functions for converting numeric vectors into formatted character strings ready for table cells.

peri_glue()
Expressive rounding for table values
peri_value()
General rounding for tables
peri_n_pct()
Format a count and percentage pair
peri_pvalue()
Round p-values
peri_ester() peri_estin()
Round estimates and their corresponding errors

Rounding specifications

Build and configure a rounding_specification object that controls how values are rounded and formatted.

round_spec()
Make a rounding specification
set_default_rounding_spec()
Set the default rounding specification used by periglue functions
round_using_magnitude() round_using_signif() round_using_decimal()
Set rules for rounding numbers
round_half_up() round_half_even()
Set rules for rounding ties
format_big()
Format values left of decimal
format_decimal()
Format decimal symbol
format_missing()
Format missing values
format_small()
Format values right of decimal

Bracket helpers

Extract or manipulate components of bracket-formatted strings such as "3.1 (2.0, 4.2)".

Data

nhanes
NHANES blood pressure data