XPowerSet: Returns a List with the Power Set of a set S

Description Usage Arguments Examples

View source: R/XPowerSet.R

Description

The Power Set is the set of all subsets of S, including the empty set and S itself Cardinality of the Power Set must be 2^n with n = number of elements in the set Remember that matematically, a Set cannot have repeated elements, So this function will apply a unique() to the input vector

Usage

1

Arguments

v

Examples

1
2
3
4
5
x = XPowerSet()
x = XPowerSet(letters[1:1])
x = XPowerSet(letters[1:2])
x = XPowerSet(letters[1:3])
x = XPowerSet(c("bu","bu","cx","a"))

EduardoJacob/xfunctions documentation built on March 12, 2021, 7:30 a.m.