Description Usage Arguments Examples
This functions converts a single factor into dummy
variables, with one dummy variable for each level of that
factor. Names are constructed as <varName>_<level>
.
1 | make_dummy(x)
|
x |
an object coercable to |
1 2 | x <- factor( rep( c("a", "b", "c", "d"), each=25 ) )
make_dummy(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.