My dataframe has 2 columns which look similar to this:
a b
NA NA
yes NA
no NA
yes NA
NA yes
NA no
NA NA
Na yes
What I would then like as output is:
ab
NA
yes
no
yes
yes
no
NA
yes
Note that:
- In the original columns, there will always be an NA in any given row.
- For certain rows both columns will be NA
Any idea how I could get to the desired output?