Description Usage Arguments Value Examples
View source: R/pvalueFormatter.R
Gets formatted p-values. For instance you often want 0.1234 to be 0.12 while also having two values up until a limit, i.e. 0.01234 should be 0.012 while 0.001234 should be 0.001. Furthermore you want to have < 0.001 as it becomes ridiculous to report anything below that value.
1 2 | pvalueFormatter(pvalues, two_dec.limit = 10^-2, sig.limit = 10^-4,
html = TRUE)
|
pvalues |
The p-values |
two_dec.limit |
The limit for showing two decimals |
sig.limit |
The significance limit for < sign |
html |
If the less than sign should be < or < as needed for html output. |
vector
1 | pvalueFormatter(c(0.10234,0.010234, 0.0010234, 0.000010234))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.