choose_permute {roperators} | R 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)
[Package roperators version 1.3.14 Index]