nCr: n Choose r

View source: R/utils.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)

EDG


egenn/rtemis documentation built on June 14, 2025, 11:54 p.m.