The Combinations package

Combinations_0.2-0.tar.gz
Combinations_0.2-0.zip

This package provides a very simple facility which is to compute all of the n choose r combinations from selecting r items from a set of n elements. This is useful in sampling, probability, etc. The package also illustrates one approach to handling very large vectors of data that are generated dynamically.

The code is adapted from Glen Rhoads' code at, originally at http://remus.rutgers.edu/~rhoads/Code/code.html

The package also serves as a relatively simple example of how to

Installation

You can install this for R using the R command (i.e. within an R session)
install.packages("Combinations", repos = "http://www.omeghat.org/R")
Alternatively, download the source and install it using
 R CMD INSTALL Combinations_0.2-0.tar.gz
or use the binary version.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
Last modified: Tue Mar 2 21:45:53 PST 2010