Description Usage Arguments Value Author(s) See Also
A function to format a given number according to the APA guidelines, i.e. removing the 0 before the decimal point, and rounding the number to two digits. If the number to format is a p value, then add 'p = ' or 'p < .05'. The output can be directly used in a Knitr/Sweave document.
1 |
nbr |
A number to format. |
p |
A boolean index to precise if the number to format is a p value. |
Return a string reporting an inline number results according to the APA guideline.
Guillaume T. Vallet gtvallet@gmail.com, University of de Montreal (Canada);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.