help.search('combination') and you will find 'combn'

> combn(1:8,2)
     [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13]
[,14] [,15] [,16] [,17] [,18]
[1,]    1    1    1    1    1    1    1    2    2     2     2     2
2     3     3     3     3     3
[2,]    2    3    4    5    6    7    8    3    4     5     6     7
8     4     5     6     7     8
     [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [,27] [,28]
[1,]     4     4     4     4     5     5     5     6     6     7
[2,]     5     6     7     8     6     7     8     7     8     8



On 12/16/06, mirca heli <mir.k@gmx.at> wrote:
>
> hello list,
>
> i've got 8 objects and i want to calculate a list with all combinations of
> them. the output should contain the object names.
> for example: object1 & 2, 1 $ 3, ...
>
> best regards
> mirca
> --
> "Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
> www.deutschlandsegelt.de
> Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's
> Cup-Yacht!
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

	[[alternative HTML version deleted]]

