powered by
unpivot data matrix
unpivot(m)
matrix or dataframe
# NOT RUN { x = matrix(1:25,ncol=5) x = as.data.frame(x) colnames(x) = letters[1:5] rownames(x) = LETTERS[1:5] unpivot(x) # }
Run the code above in your browser using DataLab