[R] if else statement

From: H. Paul Benton <hpbenton_at_scripps.edu>
Date: Fri 19 Jan 2007 - 03:02:49 GMT


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

}ifelse (cond) {

} else {


type block.

Is this correct or am I missing something.

THX Paul

Research Technician
Mass Spectrometry
   o The
o Scripps
   o Research
o Institute

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri Jan 19 14:09:34 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 19 Jan 2007 - 14:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.