Package: prmisc 0.0.3
prmisc: Miscellaneous Printing of Numeric and Statistical Output in R Markdown and Quarto Documents
Miscellaneous printing of numeric or statistical results in R Markdown or Quarto documents according to guidelines of the "Publication Manual" of the American Psychological Association (2020, ISBN: 978-1-4338-3215-4). These guidelines are usually referred to as APA style (<https://apastyle.apa.org/>) and include specific rules on the formatting of numbers and statistical test results. APA style has to be implemented when submitting scientific reports in a wide range of research fields, especially in the social sciences. The default output of numbers in the R console or R Markdown and Quarto documents does not meet the APA style requirements, and reformatting results manually can be cumbersome and error-prone. This package covers the automatic conversion of R objects to textual representations that meet the APA style requirements, which can be included in R Markdown or Quarto documents. It covers some basic statistical tests (t-test, ANOVA, correlation, chi-squared test, Wilcoxon test) as well as some basic number printing manipulations (formatting p-values, removing leading zeros for numbers that cannot be greater than one, and others). Other packages exist for formatting numbers and tests according to the APA style guidelines, such as 'papaja' (<https://cran.r-project.org/package=papaja>) and 'apa' (<https://cran.r-project.org/package=apa>), but they do not offer all convenience functionality included in 'prmisc'. The vignette has an overview of most of the functions included in the package.
Authors:
prmisc_0.0.3.tar.gz
prmisc_0.0.3.zip(r-4.7)prmisc_0.0.3.zip(r-4.6)prmisc_0.0.3.zip(r-4.5)
prmisc_0.0.3.tgz(r-4.6-any)prmisc_0.0.3.tgz(r-4.5-any)
prmisc_0.0.3.tar.gz(r-4.7-any)prmisc_0.0.3.tar.gz(r-4.6-any)
prmisc_0.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
prmisc/json (API)
| # Install 'prmisc' in R: |
| install.packages('prmisc', repos = c('https://m-py.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/m-py/prmisc/issues
Last updated from:28300cb0db. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 132 | ||
| source / vignettes | OK | 189 | ||
| linux-release-x86_64 | OK | 130 | ||
| macos-release-arm64 | OK | 153 | ||
| macos-oldrel-arm64 | OK | 141 | ||
| windows-devel | OK | 91 | ||
| windows-release | OK | 74 | ||
| windows-oldrel | OK | 74 | ||
| wasm-release | OK | 116 |
Exports:decimals_onlyforce_decimalsforce_or_cutformat_pprint_anovaprint_chi2print_cortestprint_mean_sdprint_ttestprint_wilcoxon_rs
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Printing a specified number of decimals and ignore leading zeros | decimals_only |
| Force printing a specified number of decimals for a number | force_decimals |
| Print a number having a specified number of digits or as integer | force_or_cut |
| Format a p-value according to APA standards | format_p |
| Print the results of an 'afex' ANOVA | print_anova |
| Print the results of a chi-square test | print_chi2 |
| Printing the results of a significance test for a correlation coefficient | print_cortest |
| Print mean and standard deviation | print_mean_sd |
| Print the results of a t-test | print_ttest |
| Print the results of a Wilcoxon rank sum test (Mann-Whitney-U test) | print_wilcoxon_rs |
