s-news
[Top] [All Lists]

Re: No NA

To: "Hussain, Shakir" <S.Hussain@bham.ac.uk>
Subject: Re: No NA
From: Patrick Burns <pburns@pburns.seanet.com>
Date: Mon, 29 Nov 2004 13:51:42 +0000
Cc: s-news@wubios.wustl.edu
In-reply-to: <77C5165AA5A3E642B2349486E9F926102819D6@medgp3.bham.ac.uk>
References: <77C5165AA5A3E642B2349486E9F926102819D6@medgp3.bham.ac.uk>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 StumbleUpon/1.995 (ax)
Is

apply(the.matrix, 2, function(x) x[!is.na(x)])

what you are looking for?

Patrick Burns

Burns Statistics
patrick@burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")

Hussain, Shakir wrote:

Hi,

From the matrix
        2200 490 NA 501 NA
        NA   NA  90 NA 749
        NA   201 NA 300 99
        191  NA  70 NA 1003
        NA  1008 399 NA 70

wonder how can I get
      2200  490   90  501  749
      191   201   70  300   99
           1008  399      1003
                            70


Thank you in advance.
Shakir

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news






<Prev in Thread] Current Thread [Next in Thread>
  • No NA, Hussain, Shakir
    • Re: No NA, Patrick Burns <=