/random-functions

R functions for which I want some version control

Primary LanguageR

randomFunctions

R functions for which I want some version control

Note, these are public because there's no point in making them private, but that doesn't mean they will be useful to you! You are welcome to give them a go and I always appreciate anyone spotting bugs in my code.

I have put them in one package not because they are in any way related to each other, but because I like to have them around without cluttering up my current environment.

I keep some notes about some of these functions at my code blog.

Functions

  • ggplot-heatmap.R makes heatmaps in ggplot2

  • getArgs.R makes parsing commandArgs() easy for use in Rscripts

  • abf.R calculates approximate BayesFactors from p values and MAF. See Wakefield, J (2009) Bayes factors for genome-wide association studies: comparison with p-values. Genetic Epidemiology 33: 79–86.

  • Cochran.Armitage.mod.R Cochran Armitage score test with Mantel extension.