On Tue, Jul 14, 2009 at 8:20 AM, Michael Knudsen<micknud...@gmail.com> wrote:
> What do you mean? It looks a like a very general solution to me. Just got an email suggesting using the functions col and row. For example temp = matrix(c(1:36),nrow=6) which(col(temp)>row(temp)) This gives the indices (in the matrix viewed as a vector) of the above-diagonal entries. -- Michael Knudsen micknud...@gmail.com http://lifeofknudsen.blogspot.com/ ______________________________________________ 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.