qwraps2

An updated version of qwraps with a focus on flexibility and general purpose. These functions are helpful for extracting and formatting results from R into .Rnw or .Rmd files. Additional functions for routine work such as extracting results from regression models or finding sensitivity and specificity.

https://github.com/dewittpe/qwraps2

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    4 of 8 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.5%) to scientific vocabulary

Keywords

cran r r-package
Last synced: 11 months ago · JSON representation

Repository

An updated version of qwraps with a focus on flexibility and general purpose. These functions are helpful for extracting and formatting results from R into .Rnw or .Rmd files. Additional functions for routine work such as extracting results from regression models or finding sensitivity and specificity.

Basic Info
Statistics
  • Stars: 37
  • Watchers: 6
  • Forks: 7
  • Open Issues: 4
  • Releases: 0
Topics
cran r r-package
Created over 11 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Contributing License

README.md

qwraps2

Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-CMD-check codecov

OpenSSF Best Practices

CRAN_Status_Badge CRAN RStudio mirror downloads CRAN RStudio mirror downloads

License minimal R version

A collection of helpful functions for summarizing data and formatting results. These or similar functions can be found in other R packages on github.com or on CRAN. However, this is a collection of methods I have generated to help with particular projects I have worked on over the last several years. Using my original qwraps package as the foundation, this work is aimed at simplicity and ease of use.

Some of the tools provided by qwraps2 are:

  • Formatting results:

    • frmt, frmtci, and frmtp make it easier to consistently format numeric values, confidence intervals, and p-values in reports.
    • qable is a wrapper around knitr::kable with my preferred defaults.
    • summary_table is used to generate data summary tables in markdown or LaTeX
    • mean_ci, mean_sd, median_iqr, n_perc make it easy to report formatted summary statistics.
  • Plotting: Tools for building specific types of plots in ggplot2

    • qacf: Autocorrelation plots
    • qblandaltman: Bland Altman plots
    • qkmplot: Kaplan-Meier plots
    • qprc: Precision Recall Curves
    • qroc: Receiver Operator Curves
    • ggplot2_extract_legend: extract the legend from a ggplot.
  • R Programming and Development

    • lazyload_cache Load the cache generated by knitr into an interactive session.
  • Other Tools:

    • confusion_matrix: building and generate statistics for confusion matrices.
    • logit and invlogit: quick logit and inverse logit functions
    • ll: a variant for ls()

Contribute!

If you have a particular task or function used for data summaries or for reporting that you think would be helpful to include in this package please fork the repo, add the feature, and send me a pull request.

Building the package

Use the makefile. RStudio users, you will find a qwraps2.Rproj that will set the default to use the makefile in the build. My preferred IDE is neovim with the Nvim-R plug-in and I prefer to work on a Debian system. After cloning the repo, a simple call

make

will build the package. This includes generating man files via roxygen2, building the vignettes, and then building the package via R CMD build .. Passing arguments to R CMD build can be done too. For example, building the package without the vignettes is done via:

make build-options=--no-build-vignettes

Install

From CRAN

Download and install from The Comprehensive R Archive Network (CRAN).

install.packages("qwraps2", repo = "http://cran.rstudio.com")

Developmental

Install the development version of qwraps2 directly from github via the remotes package:

if (!("remotes" %in% rownames(installed.packages()))) {
  warning("installing remotes from https://cran.rstudio.com")
  install.packages("remotes", repo = "https://cran.rstudio.com")
}

remotes::install_github("dewittpe/qwraps2", build_vignettes = TRUE)

NOTE: If you are working on a Windows machine you will need to download and install Rtools.

Cloned repo

Install with GNU make

make install

Owner

  • Name: Peter DeWitt
  • Login: dewittpe
  • Kind: user
  • Location: Colorado, USA
  • Company: University of Colorado Anschutz Medical Campus

Ph.D. Biostatistician, R Enthusiast.

GitHub Events

Total
  • Watch event: 1
  • Push event: 2
  • Create event: 1
Last Year
  • Watch event: 1
  • Push event: 2
  • Create event: 1

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 612
  • Total Committers: 8
  • Avg Commits per committer: 76.5
  • Development Distribution Score (DDS): 0.487
Past Year
  • Commits: 88
  • Committers: 1
  • Avg Commits per committer: 88.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Peter DeWitt p****t@c****u 314
Peter DeWitt (UCD) p****t@u****u 147
Peter DeWitt d****e@g****m 130
Peter DeWitt p****t@n****g 13
Tell Bennett t****t@u****u 3
Tell Bennett (home) t****1@g****m 3
Matt Mulvahill (peregrine) m****l@g****m 1
seth s****l@c****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 100
  • Total pull requests: 6
  • Average time to close issues: 7 months
  • Average time to close pull requests: 2 days
  • Total issue authors: 23
  • Total pull request authors: 3
  • Average comments per issue: 1.31
  • Average comments per pull request: 0.33
  • Merged pull requests: 6
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dewittpe (69)
  • raheems (3)
  • GabiPedra (3)
  • estephanmoana (3)
  • vtmacox (2)
  • aipe (2)
  • ericpgreen (2)
  • acobos (1)
  • WeCza (1)
  • KristenZhao (1)
  • eipi10 (1)
  • dfsp-spirit (1)
  • yoursdearboy (1)
  • p-torabi (1)
  • psymicha (1)
Pull Request Authors
  • tdbennett (4)
  • magic-lantern (1)
  • mmulvahill (1)
Top Labels
Issue Labels
enhancement (47) bug (22) question (13) wontfix (3) duplicate (1) invalid (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 874 last-month
  • Total dependent packages: 5
  • Total dependent repositories: 9
  • Total versions: 19
  • Total maintainers: 1
cran.r-project.org: qwraps2

Quick Wraps 2

  • Versions: 19
  • Dependent Packages: 5
  • Dependent Repositories: 9
  • Downloads: 874 Last month
Rankings
Forks count: 7.3%
Stargazers count: 8.4%
Average: 8.7%
Downloads: 8.9%
Dependent packages count: 9.3%
Dependent repos count: 9.8%
Maintainers (1)
Last synced: 12 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • Rcpp >= 0.12.11 imports
  • ggplot2 * imports
  • knitr * imports
  • utils * imports
  • xfun * imports
  • covr * suggests
  • dplyr >= 1.0.0 suggests
  • rbenchmark * suggests
  • rmarkdown * suggests
  • survival * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v1 composite
  • r-lib/actions/setup-tinytex v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite