R package that uses Prime Factorization for computations.
This small R package was initially developed to compute hypergeometric probabilities which are used in Fisher's exact test, for instance.
## Installation
install.packages("primefactr")
## Attachment
library("primefactr")
To compute
you can useComputeDivFact(c(K, (N-K), n, (N-n)), c(k, (K-k), (n-k), (N-K-n+k), N))
. This uses a Prime Factorization to simplify computations.
You can also test if a number is a prime and get all prime numbers up to a certain number.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.