NOTE: Code review has completed.
Here is a sourceable R file with the functions
R
Or source it directly:
library(devtools) source_url(url = 'https://raw.githubusercontent.com/ManyLabsOpenScience/manylabRs/master/R/ML2_variable_functions.R')