Use Prime Factorization for Computations

Use Prime Factorization for simplifying computations, for instance for ratios of large factorials.


Project Status: Inactive ? The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows. Licence Build Status codecov minimal R version CRAN_Status_Badge packageversion Last-changedate

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 and Attachment

## Installation
install.packages("primefactr")
 
## Attachment
library("primefactr")

Features

Main feature

To compute

you can use `ComputeDivFact(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.

Play with primes

You can also test if a number is a prime and get all prime numbers up to a certain number.

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("primefactr")

0.1.1 by Florian Privé, 10 months ago


https://github.com/privefl/primefactr


Report a bug at https://github.com/privefl/primefactr/issues


Browse source code at https://github.com/cran/primefactr


Authors: Florian Privé [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Suggests testthat, covr


See at CRAN