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
a<-1
if ( a ==1 ){
b <- 2
c <- 3
} else {
b <- 0
c <- 0
}
Jue.Wang2@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};
>
>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
falimadhi@iq.harvard.edu
www.iq.harvard.edu
[[alternative HTML version deleted]]
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.