search for: eventz1975

Displaying 1 result from an estimated 1 matches for "eventz1975".

Did you mean: eventx1975
2012 Mar 22
1
Macro or Loop info/help needed
...ayr== 74 ] <- 1 t4 $ eventX1975 <- 0 t4$ eventX1975[t4 $ q100ayr== 75 ] <- 1 etc. for years between 73 and 88 # second event t4 $ eventZ1973 <- 0 t4$ eventZ1973[t4 $ q101ayr== 73 ] <- 1 t4 $ eventZ1974 <- 0 t4$ eventZ1974[t4 $ q101ayr== 74 ] <- 1 t4 $ eventZ1975 <- 0 t4$ eventZ1975[t4 $ q101ayr== 75 ] <- 1 etc. The code above will work, but would be many lines long. I'm hoping someone can give me a quick introduction to what would work best in R. I assume some type of macro or loop. Thanks in advance. Jeff