Learn R Programming

e1071 (version 1.7-16)

bincombinations: Binary Combinations

Description

Returns a matrix containing the \(2^p\) vectors of length p.

Usage

bincombinations(p)

Arguments

p

Length of binary vectors

Author

Friedrich Leisch

Examples

Run this code
bincombinations(2)
bincombinations(3)

Run the code above in your browser using DataLab