On Thu, 18 Jan 2007 19:02:49 -0800,
"H. Paul Benton" <[EMAIL PROTECTED]> wrote:

> Hello,

>     I'm doing some scripting and I've noticed that R doesn't seem to
> have an
> if (cond){
>     do
> }ifelse (cond) {
>     do
> } else {
>     do
> }

> type block.


It's legal to join if else statements together:


if (cond) {
    do X
} else if (cond) {
    do Y
} else if (cond) {
    do Z
} else do W


-- 
Seb

______________________________________________
[email protected] mailing list
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.

Reply via email to