Re: [R] Equivalent to a BY command in SAS

2008-04-14 Thread Michael Kubovy
You might also take a look at the doBy package. On Apr 14, 2008, at 7:30 AM, zerfetzen wrote: > Thanks all. I will try to use both tapply and by, and have no idea > how I > missed the by function. Thanks again. _ Professor Michael Kubovy University of Virginia Dep

Re: [R] Equivalent to a BY command in SAS

2008-04-14 Thread Duncan Murdoch
On 4/14/2008 7:30 AM, zerfetzen wrote: > Thanks all. I will try to use both tapply and by, and have no idea how I > missed the by function. Thanks again. One problem with both of those arises if you are subsetting on several columns. They will do the calculations for all combinations of all c

Re: [R] Equivalent to a BY command in SAS

2008-04-14 Thread zerfetzen
Thanks all. I will try to use both tapply and by, and have no idea how I missed the by function. Thanks again. -- View this message in context: http://www.nabble.com/Equivalent-to-a-BY-command-in-SAS-tp16670452p16676280.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Equivalent to a BY command in SAS

2008-04-13 Thread Rolf Turner
On 14/04/2008, at 2:36 PM, zerfetzen wrote: > > Hi, > I'm very new to R and absolutely love it. Does anyone know how to use > something in R that functions like a BY command in SAS? > > For example, let's say you have a variable x, and you want to see > the mean. > Easy... > >> mean(x) > > But

Re: [R] Equivalent to a BY command in SAS

2008-04-13 Thread Vincent Goulet
Le dim. 13 avr. à 22:36, zerfetzen a écrit : > > Hi, > I'm very new to R and absolutely love it. Does anyone know how to use > something in R that functions like a BY command in SAS? > > For example, let's say you have a variable x, and you want to see > the mean. > Easy... > >> mean(x) > > But

Re: [R] Equivalent to a BY command in SAS

2008-04-13 Thread Dylan Beaudette
On Sun, Apr 13, 2008 at 7:36 PM, zerfetzen <[EMAIL PROTECTED]> wrote: > > Hi, > I'm very new to R and absolutely love it. Does anyone know how to use > something in R that functions like a BY command in SAS? > > For example, let's say you have a variable x, and you want to see the mean. > Eas

[R] Equivalent to a BY command in SAS

2008-04-13 Thread zerfetzen
Hi, I'm very new to R and absolutely love it. Does anyone know how to use something in R that functions like a BY command in SAS? For example, let's say you have a variable x, and you want to see the mean. Easy... > mean(x) But what if you want to see the mean of x conditional on another disc