library(dplyr)
Xlong = array(rnorm(108*5*10), c(108*5, 10))
subjects = rep(1:108, 5)
features = rep(1:10)
timepoints = rep(1:5, each=108)
dataset = reshapeData(Xlong, subjects, features, timepoints)
Run the code above in your browser using DataLab