ubject: Re: [R] How to apply a function to all combinations of the
values of 2 or more variables?
by(mf,list(mf$centre,mf$complex),summary)
- Phil Spector
Statistical Computin
Check out plyr:
http://had.co.nz/plyr/
On Wed, Apr 15, 2009 at 2:03 PM, Lane, Jim wrote:
> Hi, All
>
> Forgive me if this is a stupid newbie question. I'm having no luck
> googling an answer to this, probably because I don't know the right R
> terminology to frame my question. I want to know how
I think you want to have a look at the plyr or doBy packages.
It would be easier to give a precise answer with a minimal example.
HTH,
baptiste
On 15 Apr 2009, at 18:03, Lane, Jim wrote:
Hi, All
Forgive me if this is a stupid newbie question. I'm having no luck
googling an answer to this, p
Hi, All
Forgive me if this is a stupid newbie question. I'm having no luck
googling an answer to this, probably because I don't know the right R
terminology to frame my question. I want to know how to run an R
function on each combination of the values of 2 or more variables. In
SAS-speak this is
4 matches
Mail list logo