[R] Got Unexpected ELSE error

2007-06-20 Thread Shiazy Fuzzy
Dear R-users, I have a problem with the IF-ELSE syntax. Please look at the folllowing code and tell me what's wrong: a - TRUE if ( a ) { cat(TRUE,\n) } else { cat(FALSE,\n) } If I try to execute with R I get: Error: syntax error, unexpected ELSE in else The strange thing is

Re: [R] Got Unexpected ELSE error

2007-06-20 Thread ONKELINX, Thierry
Shiazy Fuzzy Verzonden: woensdag 20 juni 2007 11:41 Aan: r-help@stat.math.ethz.ch Onderwerp: [R] Got Unexpected ELSE error Dear R-users, I have a problem with the IF-ELSE syntax. Please look at the folllowing code and tell me what's wrong: a - TRUE if ( a ) { cat(TRUE,\n

Re: [R] Got Unexpected ELSE error

2007-06-20 Thread Uwe Ligges
Shiazy Fuzzy wrote: Dear R-users, I have a problem with the IF-ELSE syntax. Please look at the folllowing code and tell me what's wrong: a - TRUE if ( a ) { cat(TRUE,\n) } At this point, the expression above is complete and it ios evaluated if called interactively. Then,

Re: [R] Got Unexpected ELSE error

2007-06-20 Thread Dimitris Rizopoulos
: Shiazy Fuzzy [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Wednesday, June 20, 2007 11:41 AM Subject: [R] Got Unexpected ELSE error Dear R-users, I have a problem with the IF-ELSE syntax. Please look at the folllowing code and tell me what's wrong: a - TRUE if ( a ) { cat(TRUE,\n

Re: [R] Got Unexpected ELSE error

2007-06-20 Thread Shiazy Fuzzy
: Shiazy Fuzzy [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Wednesday, June 20, 2007 11:41 AM Subject: [R] Got Unexpected ELSE error Dear R-users, I have a problem with the IF-ELSE syntax. Please look at the folllowing code and tell me what's wrong: a - TRUE

Re: [R] Got Unexpected ELSE error

2007-06-20 Thread Peter Dalgaard
Shiazy Fuzzy wrote: Dear R-users, I have a problem with the IF-ELSE syntax. Please look at the folllowing code and tell me what's wrong: a - TRUE if ( a ) { cat(TRUE,\n) } else { cat(FALSE,\n) } If I try to execute with R I get: Error: syntax error, unexpected