
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]]

