[R] Viewing certain numbers without NA's

About this list Date view Thread view Subject view Author view Attachment view

From: Patrick Buetzberger (patrick@giub.unibe.ch)
Date: Mon 06 May 2002 - 17:52:07 EST


Message-id: <3CD63627.DA9AA2A5@giub.unibe.ch>


Dear R Community,

We have recently installed R 1.5.0 on several workstations. Ever since,
if I try to extract certain numbers or lines from a file (which contains

many NA's), I don't only get my desired line but all other lines which
contain NA's. In a file with 15000 rows and 7500 NA's this is not very
practical. In the earlier R-Version this worked when I typed in the
following:

a <- konz[konz[,17] == 1061 | konz[,17] == 1017,4:17]

In this case, vector 'a' contained columns 4:17 of every row in file
'konz' in which column 17 equaled 1061 or 1017, and nothing else. Since
R 1.5.0 is installed I also get all rows in which row 17 of 'konz'
contains NA's (and that's many).

Any hint how I can avoid this?

Thanks, Patrick Buetzberger





About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:57:15 EST