Re: [R] reshape/aggregate

2011-08-31 Thread Kai Megerle
B4 4.713124 0.9521689 > [9,] B5 7.285824 1.5884689 > [10,] C1 3.799665 3.7728015 > [11,] C2 9.218785 0.9415034 > [12,] C3 5.098077 3.5256497 > > > On Wed, Aug 31, 2011 at 4:19 AM, Kai Megerle wrote: > > Hi all, > > I apologize for

[R] reshape/aggregate

2011-08-31 Thread Kai Megerle
Hi all, I apologize for this probably stupid question, but I really can't figure it out. I have a dataframe like this: group <- c(rep('A', 8), rep('B', 15), rep('C', 6)) time <- c(rep(seq(1:4), 2), rep(seq(1:5), 3), rep(seq(1:3), 2)) value <- runif (29, 1, 10) dfx <- data.frame (group, time, value