choose_permute: Choose and permute

choose_permuteR Documentation

Choose and permute

Description

Shorthand for some common mathematical operators

Usage

n %C% k

n %P% k

Arguments

n

whole number (from n choose/permute k)

k

whole number (from n choose/permute k)

Author(s)

Ben Wiseman, benjamin.wiseman@kornferry.com

Examples

# Calculate 5 choose 3
print(5 %C% 3)
# Calculate 5 permute 3
print(5 %P% 3)


roperators documentation built on July 26, 2023, 5:27 p.m.