Description Usage Arguments Value Author(s) See Also Examples
Create a matrix of all binary combinations for use with the hyperdirichlet distribution
1 |
n |
Number of binary digits |
alternatives |
The alternatives; prototypically |
pnames |
Optional vector specifying the column names; default of
|
Function binmat(n)
returns an integer matrix of zeros and ones
with 2^n rows and n columns. In binary, the rows count
from 0 to 2^n-1.
Robin K. S. Hankin
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.