generateCombinations: Gnenerate combinations with specified size

View source: R/Common.R

generateCombinationsR Documentation

Gnenerate combinations with specified size

Description

Gnenerate combinations with specified size

Usage

generateCombinations(
  panel = NULL,
  size = 0,
  repeats = FALSE,
  vector = FALSE,
  sep = "-"
)

Arguments

panel

panel which will be used to make combinations

size

size of a single combination. Can be a signle value or a vector value

repeats

Default FALSE, not allow repeats

sep

If return a vector, sep is needed

Examples

loonR::generateCombinations(c("a","b","c"), size = 1:2)

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.