From Factor To Dummy Variables
Transform a factor
or a factor-like vector of
character
into a matrix of dichotomous dummy
variables
.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>
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.