format_p_md: format_p_md

Description Usage Arguments Details Value Examples

View source: R/numberFormatters.R

Description

format_p_md

Usage

1
format_p_md(p, sci = TRUE, digits = 3, sci_thres = 0.001, format = "html")

Arguments

p

numeric atom

sci

use scientific x10 format

digits

number of decimal places to display

sci_thres

threshold below which to apply scientific format [0,1]

format

language used to do formatting ("html" or "latex")

Details

if format = "latex', use knitr::kable( format = 'latex', escape = FALSE)

Value

character atom

Examples

1
format_p_md(p= 0.1234, sci = TRUE, digits = 3, sci_thres = 1e-3, format = 'html')

murraycadzow/bReakingbad documentation built on Oct. 15, 2021, 3:27 p.m.