Displaying 1 result from an estimated 1 matches for "dowqn".
Did you mean:
down
2008 Jan 01
3
if statement problem
...ger' to 1 of the subject is over 65
and has a BMI > 30.
I find that my statement evaluates the first record in the data.frame
and then carries that assignment for all. I detected this as I played
around with the values and found that the T/F status of the first
record was always carried dowqn. I have gotten this to work with an
elseif construction, but would like to know what is happening here.
Thanks,
Gerard
Using: Windows Vista and R 2.61
Code and output:
das<- sasxport.get("c:\\personal\\r\\das.xpt")
if (das$age>65 && das$bmi>30) {das$danger<-1} e...