powered by
Translate long to wide format (inverse of wide2long.matrix)
long2wide(out)
data.frame in long format
data.frame in wide format