Message-ID: <BAY10-F4880785D65EA9CEBE11EF6DC470@phx.gbl>
Date: 2005-03-31T01:22:03Z
From: Asha Jayanthi
Subject: NA's?
In-Reply-To: <33F91FB3FDF42E4180428AC66A5CF30B02D3BAAE@afhex01.dpi.wa.gov.au>
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
Asha
http://adfarm.mediaplex.com/ad/ck/4686-26272-10936-31?ck=RegSell Start your
business.