[R] does a factorial function exist

Nicholas Lee N.J.Lee at statslab.cam.ac.uk
Wed Jun 23 20:38:15 CEST 1999

On Wed, 23 Jun 1999, Alex Buerkle wrote:

> I've looked through the documentation with R-0.64.1 and have been unable
> to find a high-level function for evaluation of factorials (i.e., n!, not
> factorial designs).  Is there such a function?

function(n) {prod(1:n)}


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list