Integer2Binary: Transforms an Integer Variable into a Binary Variable

View source: R/Integer2Binary.R

Integer2BinaryR 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")

MultBiplotR documentation built on Nov. 21, 2023, 5:08 p.m.