Transforms an Integer Variable into a Binary Variable
Transforms an Integer Variable into a Binary Variable
Integer2Binary(y, name = "My_Factor")
y |
Vector with the factor |
name |
name of the factor |
Transforms an Integer vector into a Binary Indicator Matrix
A Binary Data Matrix
Jose Luis Vicente-Villardon
dat=c(1, 2, 2, 4, 1, 1, 4, 2, 4) Integer2Binary(dat,"Myfactor")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.