Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Integer2Binary

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

Multivariate Analysis Using Biplots in R

v1.3.30
GPL (>= 2)
Authors
Jose Luis Vicente-Villardon
Initial release
2021-03-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.