pval2str | R Documentation |
Convert a p-value to a character corresponding to p-value levels
pval2str(pv, numonly = FALSE, ...)
pval2star(pv, ns = "", thresholds = c(0.05, 0.001, 1e-04))
pv |
a p-value |
numonly |
do not append stars to the output of |
ns |
string to be used for values below the lowest threshold |
thresholds |
numeric vector defining three thresholds for one, two or three stars |
Convert a p-value to a character corresponding to p-value levels.
pval2str
returns a formatted number with, optionally, stars denoting
the significance of the p-value. pval2star
returns just the stars.
Both functions return character vector with p-values converted to respective strings.
# will return c( "**" )
pval2star( 0.0005 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.