[R] NA's?

From: Asha Jayanthi <ashajayanthi_at_hotmail.com>
Date: Thu 31 Mar 2005 - 11:22:03 EST

I have a large matrix of data .

The size of the matrix ranges from 100 x 100 to 1000 x 1000

Now i have to do computations on that. And should not consider the diagonal elements.

I tried setting diag(M) = NA and M = na.omit(M).

But this omits all the rows. I only want to omit that diagonal elements only but consider the whole row.

diag(M) = 0 seems like a good option but this will affect my result.

How to proceed with this. How to just ignore some specific values. what if i want to consider only the upper / lower triangular matrix


http://adfarm.mediaplex.com/ad/ck/4686-26272-10936-31?ck=RegSell Start your business.

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 Received on Thu Mar 31 11:29:36 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:57 EST