subsets {tsapp}R Documentation

subsets determines all subsets of a set of n elements (labelled by 1,2,...,n ).

Description

subsets determines all subsets of a set of n elements (labelled by 1,2,...,n ).

Usage

subsets(n)

Arguments

n

scalar, integer >= 1

Value

mat (2^n,n)-matrix, each row gives the membership indicators of the elements 1,2,...,n

Examples

out <- subsets(4)


[Package tsapp version 1.0.4 Index]