I have a several data sets with 75,000 observations and a type variable that can take on a value 0-4. I want to add five new dummy variables to each data set f
type
The nnet package for single-layer neural networks (which don't understand factors) has a conversion command: class.ind.