Learn R Programming

e1071 (version 1.6-7)

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
bincombinations(2)
bincombinations(3)

Run the code above in your browser using DataLab