t(data) returns a list. If you want to form your data, you can turn into a data frame by forcing: as.data.frame(data)
Best solution: use the melt function from the dplyr package. It can easily turn your data into a tabular form, after which you can "effectively" play with your data.
strboul
source share