Hi All,
I have a matrix like
m <- matrix( letters[1:10], ncol=5)

How to conver it to  10 * 3 matrix, which the first col is row index of m, 
second col is colum index of m and third column is the value of matrix, say

1        1   1    "a"

2        1   2   "c"
1  3  "e"
etc...
Thanks.







        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to