Re: COMBIN



Slightly off-gnumeric, R (www.r-project.org) with which Gnumeric has had friendly exchanges, can do the job:

> combn(5,2)
     [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
[1,]    1    1    1    1    2    2    2    3    3     4
[2,]    2    3    4    5    3    4    5    4    5     5
>

In the past there were some ways to call R from Gnumeric, but I fear they are not currently functional, buy welcome correction on that.

John Nash

On 10-07-31 08:00 AM, gnumeric-list-request gnome org wrote:
Date: Fri, 30 Jul 2010 11:02:35 -0400
From: Morten Welinder<mortenw gnome org>
To: yannis yannis<yanniscfu gmail com>
Cc: gnumeric-list gnome org
Subject: Re: COMBIN
Message-ID:
        <AANLkTindhzApAg5ROvvxX4oJea5BZeT9zMprp3G6CuF- mail gmail com>
Content-Type: text/plain; charset=ISO-8859-1

Is there any way to know which are these combinations?
Any advise could be very helpful. Thank you for your time!

Not via Gnumeric, but http://en.wikipedia.org/wiki/Combination
is a good start.  Note the first external reference:
http://compprog.wordpress.com/2007/10/17/generating-combinations-1/

Morten



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]