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
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
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,
: 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
: 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
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