Description Usage Arguments Author(s) Examples

Calculate the number of combinations or permutations for a number of objects.

1 |

`objects` |
The number of different kinds of objects available for selection. |

`choose` |
The number of objects selected at a given time. |

`order` |
If TRUE, the order of the objects matters, for example aba != aab. |

`repetition` |
If TRUE, a sequence such as bbb is permissible. |

Santiago Barreda <[email protected]>

1 2 3 4 5 6 7 8 | ```
# combinations, no repetition
combocalc (10, 4, order = FALSE, repetition = FALSE)
# combinations, with repetition
combocalc (10, 4, order = FALSE, repetition = TRUE)
# permutations, no repetition
combocalc (10, 4, order = TRUE, repetition = FALSE)
# permutations, with repetition
combocalc (10, 4, order = TRUE, repetition = TRUE)
``` |

```
[1] 210
[1] 715
[1] 5040
[1] 10000
```

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.