I have the following data frame, and am trying to merge the two columns into one, while replacing NA
's with the numeric values.
ID A B
1 3 NA
2 NA 2
3 NA 4
4 1 NA
The result I want is:
ID New
1 3
2 2
3 4
4 1
Thanks in advance!