make_dummy: Make Dummy Variables from a Factor

Description Usage Arguments Examples

Description

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>.

Usage

1

Arguments

x

an object coercable to factor.

Examples

1
2
x <- factor( rep( c("a", "b", "c", "d"), each=25 ) )
make_dummy(x)


Search within the Kmisc package
Search all R packages, documentation and source code

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

Please suggest features or report bugs with the GitHub issue tracker.

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