All Projects → dewittpe → qwraps2

dewittpe / qwraps2

Licence: other
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.

Programming Languages

r
7636 projects
C++
36643 projects - #6 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to qwraps2

oem
Penalized least squares estimation using the Orthogonalizing EM (OEM) algorithm
Stars: ✭ 22 (-33.33%)
Mutual labels:  cran, r-package
eia
An R package wrapping the US Energy Information Administration open data API.
Stars: ✭ 38 (+15.15%)
Mutual labels:  cran, r-package
RcppEigen
Rcpp integration for the Eigen templated linear algebra library
Stars: ✭ 89 (+169.7%)
Mutual labels:  cran, r-package
bruceR
📦 BRoadly Useful Convenient and Efficient R functions that BRing Users Concise and Elegant R data analyses.
Stars: ✭ 110 (+233.33%)
Mutual labels:  cran, r-package
globals
🌐 R package: Identify Global Objects in R Expressions
Stars: ✭ 27 (-18.18%)
Mutual labels:  cran, r-package
rcppsimdjson
Rcpp Bindings for the 'simdjson' Header Library
Stars: ✭ 103 (+212.12%)
Mutual labels:  cran, r-package
rcppcnpy
Rcpp bindings for NumPy files
Stars: ✭ 24 (-27.27%)
Mutual labels:  cran, r-package
Pacman
A package management tools for R
Stars: ✭ 220 (+566.67%)
Mutual labels:  cran, r-package
thinkr
Some tools for cleaning up messy 'Excel' files to be suitable for R
Stars: ✭ 21 (-36.36%)
Mutual labels:  cran, r-package
rcpptoml
Rcpp Bindings to C++ parser for TOML files
Stars: ✭ 26 (-21.21%)
Mutual labels:  cran, r-package
rdomains
Classifying the content of domains
Stars: ✭ 47 (+42.42%)
Mutual labels:  cran, r-package
rcppfastfloat
Rcpp Bindings for the 'fastfloat' Header-Only Library
Stars: ✭ 18 (-45.45%)
Mutual labels:  cran, r-package
Littler
A scripting and command-line front-end for GNU R
Stars: ✭ 238 (+621.21%)
Mutual labels:  cran, r-package
packagefinder
Comfortable search for R packages on CRAN, either directly from the R console or with an R Studio add-in
Stars: ✭ 43 (+30.3%)
Mutual labels:  cran, r-package
Tint
Tint is not Tufte
Stars: ✭ 226 (+584.85%)
Mutual labels:  cran, r-package
healthyR
Hospital Data Analysis Workflow Tools
Stars: ✭ 21 (-36.36%)
Mutual labels:  cran, r-package
Simmer
Discrete-Event Simulation for R
Stars: ✭ 170 (+415.15%)
Mutual labels:  cran, r-package
Arsenal
An Arsenal of 'R' Functions for Large-Scale Statistical Summaries
Stars: ✭ 171 (+418.18%)
Mutual labels:  cran, r-package
vosonSML
R package for collecting social media data and creating networks for analysis.
Stars: ✭ 65 (+96.97%)
Mutual labels:  cran, r-package
ctrdata
Aggregate and analyse information on clinical trials from public registers
Stars: ✭ 26 (-21.21%)
Mutual labels:  cran, r-package

qwraps2

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

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 with the look of well formatted tables from the xtables or Hmisc::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
    • 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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].