bf2str: Format Bayes factors in a nice way using scientific notation...

Description Usage Arguments Examples

View source: R/core.R

Description

Format Bayes factors in a nice way using scientific notation where necessary

Usage

1
bf2str(bf, width = 3)

Arguments

bf

Bayes factor to represent

width

number of numbers to show

Examples

1
2
3
4
5
 bfs <- c(1/2342356, 1/23424, 1/2343, 1/234, 1/2, 2, 56, 872, 99887, 2342e7)
 bf2str(bfs)

 # Drop trailing decimal points
 bf2str(c(3.2, 30.2, 300, 300.45, 3000.25))

mjaquiery/prettyMD documentation built on Oct. 6, 2021, 4:16 p.m.