Re: [R] if else statement

2007-01-19 Thread Petr Pikal
, H. Paul Benton wrote: Date sent: Thu, 18 Jan 2007 19:02:49 -0800 From: "H. Paul Benton" <[EMAIL PROTECTED]> To: r-help@stat.math.ethz.ch Subject: [R] if else statement > Hello, > > I'm doing some s

Re: [R] if else statement

2007-01-19 Thread Jeffrey J. Hallman
?switch "H. Paul Benton" <[EMAIL PROTECTED]> writes: > 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. > > Is this correct or am I missing something. -- Jeff __

Re: [R] if else statement

2007-01-18 Thread Sebastian P. Luque
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 statement

[R] if else statement

2007-01-18 Thread H. Paul Benton
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. Is this correct or am I missing something. THX Paul -- Research Technician Mass Spectrometry o The / o Scripps \ o Research