| 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> |
|---|---|---|
| ||
| Previous by Date: | book announcement - "An Introduction to S-PLUS 6 for Windows" by Longhow Lam, Dick Verkerk |
|---|---|
| Next by Date: | Re: either this is a bug or I'm missing something... (fwd), D. Mckenzie |
| Previous by Thread: | book announcement - "An Introduction to S-PLUS 6 for Windows" by Longhow Lam, Dick Verkerk |
| Next by Thread: | Re: either this is a bug or I'm missing something..., Prof Brian D Ripley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |