Converts a factor (categorical) variable to a matrix of dummy codes using a 1 of C-1 binary coding scheme.

1 | ```
dummy.code(x)
``` |

`x` |
a factor variable. |

a matrix with the number of rows equal to the number of cases in `x`

and the number of columns equal to one minus the number of factors in
`x`

. The last factor serves as the reference group.

1 | ```
print(dummy.code(iris$Species))
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.