Learn R Programming

rtemis (version 0.79)

nCr: 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?