On Jan 11, 2005, at 7:55 AM, Dimitris Rizopoulos wrote:

mat <- rnorm(9); dim(mat) <- c(3,3)
mat
###########
cbind(i=rep(1:nrow(mat), each=ncol(mat)),
               j=rep(1:ncol(mat), nrow(mat)), value=c(t(mat)))

That will do it.  Thanks!

Sean

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to