Displaying 1 result from an estimated 1 matches for "tp3001396p3001396".
2010 Oct 19
5
For-loop dummy variables?
...{
if (cleary$D1 == 4 | cleary$D1 == 6 | cleary$D1 == 7 ) {binary[i] = 1}
else {binary[i] = 0}
}
Unfortunately it simply responds with "syntax error".
Any thoughts would be greatly appreciated!
--
View this message in context: http://r.789695.n4.nabble.com/For-loop-dummy-variables-tp3001396p3001396.html
Sent from the R help mailing list archive at Nabble.com.