Skip to content
Prev 311396 / 398513 Next

Using if

RiskTest <- EvHint == 1 & MinTex == 1

will create a logical vector, one with values TRUE and FALSE.
If you really want 1 and 0 then add  RiskTest <- as.integer(RiskTest),
but using logicals instead of 0/1 variables seems more logical
to me (then you can get rid of all those ==1's).

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com