ch.combnVector: New combinations Function

View source: R/chValues.r

ch.combnVectorR Documentation

New combinations Function

Description

This function creates a vector of all the combinations of itemList taken minNumPerSide at a time to maxNumPerSide at a time.

Usage

ch.combnVector(
  numItems,
  minNumPerSide = 1,
  maxNumPerSide = 1,
  addSelfMatch = TRUE
)

Arguments

numItems

the total number of items used for the combinations.

minNumPerSide

the minimum number of items in a combination. DEFAULT = 1.

maxNumPerSide

the maxmimun number of items in a combination. DEFAULT = 1.

Value

a vector of all the combinations (by item number)

Examples

ch.combnVector (5, 1,3)

ccpluncw/ccpl_R_chValues documentation built on Feb. 12, 2024, 4:21 a.m.