This is a collection of R functions found useful on multiple occasions while completing the Master of Science in Health Data Analytics at Northeastern University. This repository is intended for anyone in the Health Data Analytics program to add useful functions to in order to aid future cohorts.
Please see package documentation for in-depth usage details until this document can be updated with usage details.
go
- tests if a value does not exist, is length 0, NULL, or NA and returns FALSE if it is, otherwise returns TRUE.startPkgs
- loads all packages supplied by the character vector silently and quickly.unloadPkgs
- silently unloads all packages in the supplied character vectorunloadAllPackages
- unloads all but the base packages.Mode
- computes the mode of a numeric vectorfindna
- Report summary of NA values and their Indicesfind_peaks
- Find Peaks in a timeseriesp.txt
- Formats a p-value as an APA style character vector.apa
- Turn statistical test output into APA style citations.visEDA
- A function for visual exploratory data analysis.homoVariance
- This test performs three of the most common homogeneity of variance tests.testTrans
- Test mathematical transformations (exp, log, square, cube) of predictor variables.theme_blue
- A dark blue theme.ggColor
- Generate hexadecimal values from R's default color wheel.Bugs are inevitable. If you find a bug, please document the issue with a Reproducible Example.
If you would like to contribute, feel free to make a pull request! If you're wondering how to find your way around a package and want to familiarize with the knowledge necessary to contribute, check out Hadley Wickham's introduction to Packages
The package is AGPLv3 which specifies that any code created using the functions herein must also be open-sourced and cannot be copyrighted for commercial gain.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.