/ Home
S-Archive Download Script
choose Number of Combinations
DESCRIPTION
Number of ways to choose x objects from n.
 
USAGE
choose(n, x)
 
REQUIRED ARGUMENTS
n numeric vector giving total number of objects.
x numeric vector giving number of objects to be chosen.
 
VALUE
numeric vector of the same length as n or x giving the number of possible sets.
 
DETAILS
Computes the will known binomial coefficient (n choose x).
 
EXAMPLES
> choose(5,2)
[1] 60

 

S-Archive Download Script

Gordon Smyth. Copyright © 1996-2016. Last modified: 10 February 2004