[R] How to create indicator variable in R?

Agus Salim a.salim at ucc.ie
Tue Oct 3 19:43:01 CEST 2000


Hi!

I have a variable with 5 categories and I want
to create dummy variables for each category.

Is there any quick way to do it in R?


Thanks,
Agus
------------------------
Agus Salim
PhD student
Dept. of Statistics
University College Cork,
Ireland
Tel: 353-21-4902197
------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list