Description Usage Arguments Details Value Author(s) Examples
View source: R/Integer2Binary.R
Transforms an Integer Variable into a Binary Variable
1 | 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
1 2 | 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.