I should have noted that the first attempt list above obviously was practice
when cleary$D1== 4. To reiterate, this still didn't work.
--
View this message in context:
http://r.789695.n4.nabble.com/For-loop-dummy-variables-tp3001396p3001398.html
Sent from the R help mailing list archive at Nabbl
Hi everyone,
I've got a dataset with 12,000 observations. One of the variables
(cleary$D1) is for an individual's country, coded 1 - 15. I'd like to create
a dummy variable for the Baltic states which are coded 4,6, and 7. In other
words, as a dummy variable Baltic states would be coded 1, else
2 matches
Mail list logo