I have a long list of automatically generated ifelse statements for many columns and conditions in dataset:
ifelse
dat$Q5_str<-ifelse(dat$Q8.4 ==&quo