s-news
[Top] [All Lists]

either this is a bug or I'm missing something...

To: s-news group <s-news@wubios.wustl.edu>
Subject: either this is a bug or I'm missing something...
From: "D. Mckenzie" <dmck@u.washington.edu>
Date: Tue, 11 Dec 2001 09:55:23 -0800 (PST)
S> temp <- c(7,8,11,12,19,20,23,24)

The first command produces expected behavior

S> c(1:24)[match(c(1:24),temp) == "NA"]
 [1]  1  2  3  4  5  6  9 10 13 14 15 16 17 18 21 22

But this one...?

S> c(1:24)[c(1:24) != temp]
 [1]  1  2  3  4  5  6  7  8  9 10 13 14 15 16 17 18 19 20 21 22

Is this a type of many-to-one relation that I misunderstand?

Thanks.

_______________________________________________________________________

                           DON MCKENZIE

                        Research Ecologist
              College of Forest Resources, Box 352100
                      University of Washington
                        Seattle, WA 98195

                            206.616.4095
                        dmck@u.washington.edu

_______________________________________________________________________



<Prev in Thread] Current Thread [Next in Thread>