Description Usage Arguments Details Value Author(s) Examples

Internal function, generally not called by users.

1 | ```
comb(m, n)
``` |

`m` |
an integer, corresponding to the number of zeros. It must be greater or equal to zero. |

`n` |
an integer, corresponding to the number of ones. It must be greater or equal to zero. |

`comb`

builds the matrix with all combinations of *m* zeros and *n* ones. The output matrix will hence have as number of columns *nc=m+n* and as number of rows *nr = (m + n)! / (m!n!)*, which is the number of all the possible combinations. Each row will contain one of the *nr* possible combinations of *m* zeros and *n* ones.

A matrix

Lucia Tamburino

1 | ```
comb(3,2)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.