21/10/2014
R and experimental design: I am sharing *wide2long* function, which I wrote for friendly conversion of repeated measures data - from wide into long format required by R packages
The function introduced here, written and named “wide2long” by myself, is basically a wrapper over the “melt” function from the “reshape2” package by Hadley Wickham. It adds some functionality, though. The wrapper is meant to be just a little bit more friendly to experimental scientists than the original “melt” function. It is also meant as a basic building block - a sub-function - of functions which I will describe in next posts. “wide2long” handles a very simple design (a special case of A/B testing), in which there is only one repeated measures variable. Functions coming in next posts will deal with more complex situations.