This was covered on r-devel last year; see https://stat.ethz.ch/pipermail/r-devel/2015-September/071813.html -- Rodney Sparapani, PhD Assistant Professor of Biostatistics Medical College of Wisconsin, Milwaukee