Learn R Programming

scanstatistics (version 1.1.1)

powerset_zones: Creates a set of all non-empty subsets of the integers from 1 to \(n\).

Description

Creates a list of all \(2^(n-1)\) non-empty subsets of the integers from 1 to \(n\).

Usage

powerset_zones(n)

Value

A list of integer vectors.

Arguments

n

An integer larger than 0.