[R] does a factorial function exist

Ross Ihaka ihaka at stat.auckland.ac.nz
Wed Jun 23 18:46:28 CEST 1999

It used to be in there at one point.  You can define your own as follows

	factorial <- function(x) gamma(x+1)

It is an important omission.


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