Dear useRs,
Given this code I end up with a list of class by:
a - sample(1:5,200,replace=TRUE)
b - sample(c(v1,v2,v3),200,replace=TRUE)
c - sample(c(11,22,33),200,replace=TRUE)
data - runif(200)
grouped - by(data,list(a,b,c),function(x) {c(min=min(x),max=max(x),
Here is a different approach to achieving what I think you want using
summarize() in the Hmisc package:
library(Hmisc)
mydata - data.frame(a = sample(1:5,200,replace=TRUE),
b = sample(c(v1,v2,v3),200,replace=TRUE),
c =
/dimitris.htm
- Original Message -
From: bogdan romocea [EMAIL PROTECTED]
To: R-help@stat.math.ethz.ch
Sent: Wednesday, June 08, 2005 4:56 PM
Subject: [R] get level combinations from by list
Dear useRs,
Given this code I end up with a list of class by:
a - sample(1:5,200,replace=TRUE)
b