Skip to content

aggregate combination data

1 message · Rui Barradas

#
Hello,

You forgot to Cc the list.
As for your question, you want all possible combinations of rows? For 
all possible values of k in 1:19?

 > sum(sapply(1:19, function(k) choose(19, k)))
[1] 524287

Or you want to split the data.frame by plot and the have all possible 
combinations?

 > sum(sapply(1:10, function(k) choose(10, k)))
[1] 1023
 > sum(sapply(1:9, function(k) choose(9, k)))
[1] 511

Rui Barradas
Em 14-11-2012 11:31, catalin roibu escreveu: