a<-1 if ( a ==1 ){ b <- 2 c <- 3 } else { b <- 0 c <- 0 }
[EMAIL PROTECTED] wrote: >What is the correct form to write statement meaning: > >if (a==1) {b=2; c=3}; else {b=0; c=0}; > >Thank you > > >Jue Wang, Biostatistician >Contracted Position for Preclinical & Research Biostatistics >PrO Unlimited >(908) 231-3022 > >______________________________________________ >R-help@stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. > > > -- Ferdinand Alimadhi Programmer / Analyst Harvard University The Institute for Quantitative Social Science (617) 496-0187 [EMAIL PROTECTED] www.iq.harvard.edu [[alternative HTML version deleted]] ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.