[R] if then else

Uwe Ligges ligges at statistik.uni-dortmund.de
Sat Sep 30 12:29:44 CEST 2006



Jue.Wang2 at sanofi-aventis.com wrote:
> What is the correct form to write statement meaning:
> 
> if (a==1) {b=2; c=3}; else {b=0; c=0};


if (a==1) {b=2; c=3} else {b=0; c=0};

;-)

Uwe Ligges


> Thank you
> 
> 
> Jue Wang, Biostatistician
> Contracted Position for Preclinical & Research Biostatistics
> PrO Unlimited
> (908) 231-3022
> 
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list