Reshaping Data R provides a variety of methods for reshaping data prior to analysis. Transpose Use the t() function to transpose a matrix or a data frame. In the later case, rownames become variable (column) names. # example using built-in dataset mtcars t(mtcars) The Reshape Package Hadley Wickham has created a comprehensive package called reshape to massage data. Both an introduction and article