Description Usage Arguments Details Value Author(s) References Examples
Stacks up in columns the values of all the binary variables that can be associated with different levels of a categorical variable.
1 | binaries(x)
|
x |
A categorical variable (either numeric or character). |
The name of each new variable is of the type v.x, where x is the level of the categorical variable for which this binary variable is equal to 1.
A set of binary vectors, each having the value 1 for a unique level of x.
Debasis Sengupta <shairiksengupta@gmail.com>, Jinwen Qiu <qjwsnow_ctw@hotmail.com>
Sengupta and Jammalamadaka (2019), Linear Models and Regression with R: An Integrated Approach.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.