- Notifications
You must be signed in to change notification settings - Fork7
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.
License
dewittpe/qwraps2
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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 oron CRAN. However, this is a collection of methods I have generated to help withparticular projects I have worked on over the last several years. Using myoriginalqwraps package as the foundation, this work is aimed at simplicityand ease of use.
Some of the tools provided byqwraps2 are:
Formatting results:
frmt,frmtci, andfrmtpmake it easier to consistently format numericvalues, confidence intervals, and p-values in reports.qableis a wrapper aroundknitr::kablewith my preferred defaults.summary_tableis used to generate data summary tables in markdown or LaTeXmean_ci,mean_sd,median_iqr,n_percmake it easy to report formattedsummary statistics.
Plotting:Tools for building specific types of plots inggplot2
qacf: Autocorrelation plotsqblandaltman: Bland Altman plotsqkmplot: Kaplan-Meier plotsqprc: Precision Recall Curvesqroc: Receiver Operator Curvesggplot2_extract_legend: extract the legend from a ggplot.
R Programming and Development
lazyload_cacheLoad the cache generated by knitr into an interactivesession.
Other Tools:
confusion_matrix: building and generate statistics for confusion matrices.logitandinvlogit: quick logit and inverse logit functionsll: a variant forls()
If you have a particular task or function used for data summaries or forreporting that you think would be helpful to include in this package please forkthe repo, add the feature, and send me a pull request.
Use the makefile. RStudio users, you will find aqwraps2.Rproj that will setthe default to use the makefile in the build. My preferred IDE isneovim with theNvim-R plug-in and I prefer to work on aDebian system. After cloning the repo, a simple call
makewill build the package. This includes generating man files viaroxygen2, building the vignettes,and then building the package viaR CMD build ..Passing arguments toR CMD build can be done too.For example, building the package without the vignettes is done via:
make build-options=--no-build-vignettesDownload and install fromThe Comprehensive R Archive Network (CRAN).
install.packages("qwraps2", repo = "http://cran.rstudio.com")Install the development version ofqwraps2 directly from github via theremotes 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 andinstallRtools.
Install with GNUmake
make installAbout
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.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.
