[R] if then in R versus SAS

ramoss ramine.mossadegh at finra.org
Fri Aug 24 20:03:44 CEST 2012


I am new to R and I have the following SAS statements:

if otype='M' and ocond='1' and entry='a.Prop' then MOC=1;
else MOC=0;

How would I translate that into R code?

Thanks in advance
 



--
View this message in context: http://r.789695.n4.nabble.com/if-then-in-R-versus-SAS-tp4641225.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list