Skip to content
Prev 324979 / 398503 Next

recode: how to avoid nested ifelse

I would do this to get the highest non-missing level:

x <- pmax(3*cg, 2*hs, es, 0, na.rm=TRUE)

rock chalk...

-nfultz
On Fri, Jun 07, 2013 at 06:24:50PM -0700, Joshua Wiley wrote: