Integer2Binary: Transforms an Integer Variable into a Binary Variable

Description Usage Arguments Details Value Author(s) Examples

View source: R/Integer2Binary.R

Description

Transforms an Integer Variable into a Binary Variable

Usage

1
  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

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

villardon/MultBiplotR documentation built on June 5, 2021, 8:55 a.m.