[R] (no subject)
Rui Barradas
ru|pb@rr@d@@ @end|ng |rom @@po@pt
Mon Jul 16 11:22:02 CEST 2018
Hello,
Please repost in plain text, NO HTML formating.
Also, you are missing an open parenthesis right after while:
while( sum(abs(Sb-D-Sc-t(Pi))>1E-5)){
Hope this helps,
Rui Barradas
Às 14:25 de 15-07-2018, Atanasio Alberto Tembe Tembe escreveu:
> Hello!
>
> Is there anyone who can help me to this the error bellow? Ijust
> started using R recently. Thank you
>
>
> while sum(abs(Sb-D-Sc-t(Pi))>1E-5{Error: unexpected symbol in "while
> sum"> > k=K+1> > for(i in 1:nrow(c1)){+ +
> for(j in 1:ncol(c1)){+ + if(Sb!=0){+
> + T2=D*T/Sa+ +
> }else {+ + T2=0 +
> + }+ + Sc=sum(t(T))+
> + if(Sc!=0){+ +
> T3=Pi*T2/Sc+ + }else {+ +
> T3=0+ + }+
> Sb=sum(T)+ + }+ }> > K[1] 0
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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