Displaying 1 result from an estimated 1 matches for "tp3710995p3710995".
2011 Aug 01
2
if function problems
...ngth(x)
for(i in 1:lenx)
if (x[i]<0) return (x[i])
if (x[i]>0) return (0)
x}
but then, doing
gjr(x?
it only comes out with one number
Does anyone have any suggestions?
I appreciate a lot!
Sincerely,
Zoe
--
View this message in context: http://r.789695.n4.nabble.com/if-function-problems-tp3710995p3710995.html
Sent from the R help mailing list archive at Nabble.com.