formatOR | R Documentation |
Especially handy when some other function has problems with displaying Inf
formatOR(OR, inf.as = "Inf", sig.digs = 3)
OR |
A single number with OR to be formatted, can be +Inf. |
inf.as |
A string, defining how +Inf should be displayed as, 'Inf' by default. |
sig.digs |
A number of significant digits to show. By default 3. |
TODO: Allow vectorized input TODO: Add a way to include Confidence Intervals
A character vector with OR formatted in a nice way
Other publishing-formatting:
formatP()
,
signif_sym()
formatOR(0.0026485635335) # -> "0.00265" formatOR(Inf) # -> "Inf"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.