Re: [R] R newbie: logical subsets

2006-07-14 Thread Joshua Tokle
> [mailto:[EMAIL PROTECTED] On Behalf Of Gabor > Grothendieck > Sent: Tuesday, July 11, 2006 1:06 PM > To: Joshua Tokle > Cc: r-help@stat.math.ethz.ch > Subject: Re: [R] R newbie: logical subsets > > Try this, using the built in anscombe data set: > > anscombe[!rowSums(

Re: [R] R newbie: logical subsets

2006-07-12 Thread Greg Snow
ieck Sent: Tuesday, July 11, 2006 1:06 PM To: Joshua Tokle Cc: r-help@stat.math.ethz.ch Subject: Re: [R] R newbie: logical subsets Try this, using the built in anscombe data set: anscombe[!rowSums(abs(scale(anscombe)) > 2),] On 7/11/06, Joshua Tokle <[EMAIL PROTECTED]> wrote: > Hello!

Re: [R] R newbie: logical subsets

2006-07-11 Thread Gabor Grothendieck
Try this, using the built in anscombe data set: anscombe[!rowSums(abs(scale(anscombe)) > 2),] On 7/11/06, Joshua Tokle <[EMAIL PROTECTED]> wrote: > Hello! I'm a newcomer to R hoping to replace some convoluted database > code with an R script. Unfortunately, I haven't been able to figure out >

[R] R newbie: logical subsets

2006-07-11 Thread Joshua Tokle
Hello! I'm a newcomer to R hoping to replace some convoluted database code with an R script. Unfortunately, I haven't been able to figure out how to implement the following logic. Essentially, we have a database of transactions that are coded with a geographic locale and a type. These are be