Learn R Programming

tidyplots (version 0.3.1)

format_p_value: Format p values

Description

Format p values

Usage

format_p_value(x, accuracy = 1e-04)

Value

Formatted number as character string.

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.

Examples

Run this code
format_p_value(0.03445553)
format_p_value(0.0003445553)
format_p_value(0.00003445553)

Run the code above in your browser using DataLab