Create new dummy variable columns from categorical variable

后端 未结 8 1066
礼貌的吻别
礼貌的吻别 2020-11-28 04:03

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

8条回答
  •  旧巷少年郎
    2020-11-28 04:49

    The nnet package for single-layer neural networks (which don't understand factors) has a conversion command: class.ind.

提交回复
热议问题