On Sat, 12 Jun 2021, Allin Cottrell wrote:
> - The bincoeff(n,k) doc says that k>n leads to NA, but
actually
> bincoeff(2,3) resuls in an invalid argument error, so I guess the doc
> must be adjusted. (Same for k<0.)
I'd say so too: the doc, and not the behavior, should be adjusted. You simply
can't select n+1 or more, or a negative number, of objects from an array of n
objects so I think an error is called for.
I agree. Fixed in git.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------