Detailed description |
Would it be possible to add `sep=""` option for the term-component name?
In both, stats model.matrix and model.Matrix, collapsed factorlevels are hard to read and inconvenient to work with programmatically.
> df <- data.frame(y = 1:3, factor = c("level1", "level2", "level3"))
> model.Matrix(y ~ factor, df)
3 x 3 Matrix of class "ddenseModelMatrix"
(Intercept) factorlevel2 factorlevel3
1 1 0 0
2 1 1 0
3 1 0 1
Thanks! |
|