Re: [R] Indexing by logical vectors

2010-07-20 Thread Kingsford Jones
t;Z" However, given the long history of S/R, there must be logical or philosophical obstacles to this...? best, Kingsford Jones >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On >> Behalf Of Christian Raschke >&g

Re: [R] Indexing by logical vectors

2010-07-20 Thread David Winsemius
d it all happens, no questions asled. (I can see a generic function emerging here, perhaps...) W. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org ] On Behalf Of Christian Raschke Sent: Tuesday, 20 July 2010 9:16 AM To: r-help@r-project.org Subj

Re: [R] Indexing by logical vectors

2010-07-19 Thread Christian Raschke
appens, no questions asled. (I can see a generic function > emerging here, perhaps...) > > W. > > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Christian Raschke > Sent: Tuesday, 20 July 2010 9:

Re: [R] Indexing by logical vectors

2010-07-19 Thread Christian Raschke
On Mon, 2010-07-19 at 19:46 -0400, David Winsemius wrote: > On Jul 19, 2010, at 7:16 PM, Christian Raschke wrote: > > > Dear R-Listers, > > > > My question concerns indexing vectors by logical vectors that are > > based on the original vector. Consider the following simple example > > to hopef

Re: [R] Indexing by logical vectors

2010-07-19 Thread Bill.Venables
questions asled. (I can see a generic function emerging here, perhaps...) W. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Christian Raschke Sent: Tuesday, 20 July 2010 9:16 AM To: r-help@r-project.org Subject: [R] Indexing b

Re: [R] Indexing by logical vectors

2010-07-19 Thread David Winsemius
On Jul 19, 2010, at 7:16 PM, Christian Raschke wrote: Dear R-Listers, My question concerns indexing vectors by logical vectors that are based on the original vector. Consider the following simple example to hopefully make clear what I mean: a <- rnorm(10) a[a<0] <- NA However, I am now

[R] Indexing by logical vectors

2010-07-19 Thread Christian Raschke
Dear R-Listers, My question concerns indexing vectors by logical vectors that are based on the original vector. Consider the following simple example to hopefully make clear what I mean: a <- rnorm(10) a[a<0] <- NA However, I am now working with multiple data frames that I received, where e