Skip to content

Multiple if statement in loop condition

3 messages · Carl Witthoft, Phalaen, David Winsemius

#
What this message means is that a "{" showed up when some other bracket was
unpaired.  In this case, if you check your code, you'll see that 
"if(MatriceDist[i,j] > 0 & ((vectorID[i] > 0 | vectorID[j] > 0))"  is
lacking a closing ")"  for the if clause.

 

Phalaen wrote
--
View this message in context: http://r.789695.n4.nabble.com/Multiple-if-statement-in-loop-condition-tp4680797p4680803.html
Sent from the R help mailing list archive at Nabble.com.
#
On Nov 20, 2013, at 4:24 AM, Carl Witthoft wrote:

            
Arguably it is due to the superfluous "(" after the "&". Further evidence perhaps of the value of adding spaces before and after parentheses. Also evidence of the value of an R-aware editor.