search for: 100000076_a2

Displaying 1 result from an estimated 1 matches for "100000076_a2".

Did you mean: 100000016_a2
2012 Sep 15
5
create new variable with ifelse? (reproducible example)
...1 id2 know getalong 100000016_a1 100000016_a2 very well 4 100000035_a1 100000035_a2 fairly well NA 100000036_a1 100000036_a2 very well 3 100000039_a1 100000039_a2 very well 5 100000067_a1 100000067_a2 very well 5 100000076_a1 100000076_a2 fairly well 5 ") rep_data$clo<- ifelse((rep_data$know==c("fairly well","very well") & rep_data$getalong==c(4,5)),1,0) For sure, something must be wrong, I couldn't find it out. rep_data id1 id2 know getalong clo 100000016_a1 1...