[R] does a factorial function exist

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Jun 23 18:53:56 CEST 1999

Alex Buerkle <cbuerkle at bio.indiana.edu> writes:

> 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?
> It is trivial to code, so everyone could write their own, but it also
> would be worthwhile as a standard tool.  I'm guessing I am just
> overlooking it.

gamma(n+1) not good enough? (or prod(1:n) for that matter).

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
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