powerset: Compute all possible combinations of a vector - ignoring the...

View source: R/powerset.R

powersetR Documentation

Compute all possible combinations of a vector - ignoring the empty set

Description

Compute all possible combinations of a vector - ignoring the empty set

Usage

powerset(x, size_start = 1)

Arguments

x

Required. Input vector

size_start

First power set input size

Value

A list of possible options

Examples

# All possible combinations
powerset(1:4)

# Now try without ignoring the single sets:
powerset(1:4,2)

neonSoilFlux documentation built on Nov. 23, 2025, 1:06 a.m.