dual: Calculate the dual

Description Usage Arguments

View source: R/combinadics.R

Description

For an overview of combinadics and the dual see [yada::comb]. To calculate the dual, the number of elements that can be chosen, num_elements, must be known. It is either input directly or determined from N and k, which are input. In total, therefore, there are two valid inputs patterns for the three optional inputs num_elements, N, and k: specify numElements or specify both N and k. If all three optional inputs are given, N and k are ignored.

Usage

1
dual(m, num_elements = NA, N = NA, k = NA)

Arguments

m

The lexical index of each unique choice (starting from 0)

num_elements

The number of things that can be chosen (default: NA, not used)

N

The number of unique things (default: NA, not used)

k

The number of things to choose out of N total things (default: NA, not used)

return The dual, d (see details for [yada::comb]

d

The dual(see details)

e

The element (a vector; see details)


MichaelHoltonPrice/yada documentation built on Sept. 19, 2021, 11:27 p.m.