Integer2Binary {MultBiplotR}R Documentation

Transforms an Integer Variable into a Binary Variable

Description

Transforms an Integer Variable into a Binary Variable

Usage

  Integer2Binary(y, name = "My_Factor")

Arguments

y

Vector with the factor

name

name of the factor

Details

Transforms an Integer vector into a Binary Indicator Matrix

Value

A Binary Data Matrix

Author(s)

Jose Luis Vicente-Villardon

Examples

dat=c(1, 2, 2, 4, 1, 1, 4, 2, 4)
Integer2Binary(dat,"Myfactor")

[Package MultBiplotR version 23.11.0 Index]