possible_combinations: Calculate all possible combinations of elements

View source: R/netfacs-helpers.R

possible_combinationsR Documentation

Calculate all possible combinations of elements

Description

Takes a vector of elements and returns a vector with all possible combinations

Usage

possible_combinations(elements, maxlen, sep = "_")

Arguments

elements

A vector of elements

maxlen

maximum size of combinations to be considered

sep

String. Separator used for showing combinations of elements

Value

A vector with all element combinations


NetFACS documentation built on Dec. 7, 2022, 1:12 a.m.