Learn R Programming

dcm2 (version 1.0.2)

as_binary: Make Binary Profiles

Description

Given a number of attributes, as_binary will create all possible binary mastery profiles.

Usage

as_binary(x)

Value

A 2 ^ x by x matrix

Arguments

x

The number of attributes

Examples

Run this code
as_binary(3)
as_binary(4)

Run the code above in your browser using DataLab