format_p_value {tidyplots}R Documentation

Format p values

Description

Format p values

Usage

format_p_value(x, accuracy = 1e-04)

Arguments

x

A number to format.

accuracy

A number to round to. For example, use 0.01 to show 2 decimal places of precision. Defaults to 0.0001, corresponding to 4 decimal places of precision.

Value

Formatted number as character string.

Examples

format_p_value(0.03445553)
format_p_value(0.0003445553)
format_p_value(0.00003445553)


[Package tidyplots version 0.3.1 Index]