nCr: n Choose r

View source: R/nCr.R

nCrR Documentation

n Choose r

Description

Calculate number of combinations

Usage

nCr(n, r)

Arguments

n

Integer: Total number of items

r

Integer: Number of items in each combination

Details

In plain language: You have n items. How many different cobinations of r items can you make?

Value

Integer: Number of combinations

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Nov. 22, 2024, 4:12 a.m.