View source: R/Integer2Binary.R
Integer2Binary | R Documentation |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.