Learn R Programming

yhat (version 2.0-2)

setBits: Decimal to Binary

Description

Creates the binary representation of n and stores it in the nth column of the matrix.

Usage

setBits(col, effectBitMap)

Arguments

col

Column of matrix to represent in binary image

effectBitMap

Matrix of mean combinations in binary form

Value

Returns matrix effectBitMap of mean combinations in binary form.

Details

Creates the binary representation of col and stores it in its associated column.