I am trying to combine two sets of data into one set. I have tried to use c() but it will not work. I have also tried to use rbind() and merge() with no luck. The only command that has worked so far is cbind() but when I ask for the summary it gives me vector 1 and vector 2 instead of it being one single variable. I have also tried lm() and keep getting: lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
0 (non-NA) cases
HW3data$D7A[HW3data$D7A == 3]<-NA
HW3data$D7A[HW3data$D7A == 4]<-NA
HW3data$D7A[HW3data$D7A == 9]<-NA
HW3data$D7A[HW3data$D7A == 2]<-5
HW3data$D7B[HW3data$D7B == 1]<-4
HW3data$partyid<- cbind(HW3data$D7A, HW3data$D7B)
HW3data$partyid
This is what I currently have but am not having luck with it.