Re: [R] Modifying values outside a function using "apply".

2010-12-14 Thread Henrique Dallazuanna
Try this: l <- sapply(c(4, 3, 2), q.1) aggregate(V3 ~ V1 + V2, as.data.frame(do.call(rbind, l)), mean) On Tue, Dec 14, 2010 at 9:19 PM, Worik R wrote: > I am sure this si a simple problem but the solution is evading me. > > I have a list of matrices all with the same number of columns but diffe

[R] Modifying values outside a function using "apply".

2010-12-14 Thread Worik R
I am sure this si a simple problem but the solution is evading me. I have a list of matrices all with the same number of columns but different number of rows. The first two columns label the row. The labels are allways the same for the same row numbers, just some matricies have more rows. For e