my.dummy.df takes a data.frame
with categorical variables, and returns a data.frame
in which all the categorical variables columns are expanded as dummy variables.
The argument contr
is passed to the default contr.niets
; contr.helmert
, contr.poly
, contr.sum
, contr.treatment
are also supported.