I've been trying to create two different subsets for white native british and 2nd generation Indians and Pakistanis in the understanding society date frame but havent been able to, I already made a UKborn subsets that works just fine, however I cant figure out how to do these two subsets
here's what I have so far
British <- subset(df, ukborn>0 & ukborn < 5)
df1 <- within(British, {
White_native <- British$racel_dv == 1 & British$racel_dv == 2 & British$racel_dv == 4
Second_Generation <- British$racel_dv == 9 & British$racel_dv ==10
})