Skip to content
Prev 31163 / 398506 Next

matrix to coordinates

The two functions  row(), col()  are useful here:

aa <- data.frame(r=as.vector(row(m)), c=as.vector(col(m)), v=as.vector(m))

There's no other ready-made function for this, AFAIK.

-  tom blackwell  -  u michigan medical school  -  ann arbor  -
On Thu, 24 Apr 2003, juli g. pausas wrote: