Description Usage Arguments Value Author(s)
Transform a factor
or a factor-like vector of
character
into a matrix of dichotomous dummy
variables
1 | .dummyze(x)
|
x |
|
a matrix of {-1, 0, 1} of dimension length(x)
x G
where G
is the number of
levels (distinct values) of the factor (vector)
Federico Mattiello <federico.mattiello@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.