Skip to content
Prev 387546 / 398502 Next

for loop implementation in below problem

If he's setting PRE to the return value of "if", that is the logical
value of the expression in the if statement as far as I know. I think
that the expression within the else clause would be evaluated but not
assigned to anything and since it is within the loop, would just be
lost.

PRE<-ifelse(missing(GAY),(GA/GA)*100,(GA/GAY)*100)

would return either value depending upon whether GAY was missing.
That's what I get from the help pages.

Jim
On Mon, Mar 22, 2021 at 8:34 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote: