I have 2 columns with survey answers:
subject_id | income | income unknown |
1 | 1000 | NA |
2 | 15000 | NA |
3 | NA | 15000 |
4 | NA | 10000 |
5 | 15000 | NA |
I would like to merge the two columns. The second column has a value if the 1st income column was not answered (in most cases at least).
I thought of substituting NA
s with zeros and then summing the two columns up, but that doesn't really work.