Hello,
Please use ?dput to post your data.
dput(MyData) # paste the output of this in a post.
And you must be more clear, what does "aggregate" mean? To sum? In the
mean time see
?combn
Hope this helps,
Rui Barradas
Em 14-11-2012 11:11, catalin roibu escreveu:
Dear R users,
I want to aggregate all *d *data from all combination of n *plots* taken
by k.
Thank very much!
My data is like that:
plot d 1 14 1 13 1 12 1 14 1 18 1 20 1 21 1
43 1 108 1 43 2 41 2 61 2 83 2 61 2 84 2 45 2 21 2 12 2 11 ... 100
10
100 12
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.