Subject: [R] How to create indicator variable in R?
From: Agus Salim (a.salim@ucc.ie)
Date: Wed 04 Oct 2000 - 03:43:01 EST
Message-id: <3.0.1.32.20001003184301.006cdf08@bureau.ucc.ie>
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Thu 01 Feb 2001 - 16:14:26 EST