Learn R Programming

e1071 (version 1.7-6)

bincombinations: Binary Combinations

Description

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

Usage

bincombinations(p)

Arguments

p

Length of binary vectors

Examples

Run this code
# NOT RUN {
bincombinations(2)
bincombinations(3)
# }

Run the code above in your browser using DataLab