[R] if else statement

Jeffrey J. Hallman jhallman at frb.gov
Fri Jan 19 13:58:59 CET 2007


?switch

"H. Paul Benton" <hpbenton at scripps.edu> 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



More information about the R-help mailing list