Re: [R] Multiple if statement in loop condition

2013-11-20 Thread Phalaen
Thank you! Elisa 2013/11/20 Carl Witthoft [via R] > 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 ")" fo

Re: [R] Multiple if statement in loop condition

2013-11-20 Thread David Winsemius
On Nov 20, 2013, at 4:24 AM, Carl Witthoft wrote: > 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

Re: [R] Multiple if statement in loop condition

2013-11-20 Thread Carl Witthoft
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 > Hi! > I am a Phd student