I have a data like this:
name A_1 B_1 A_2 B_2
"Jack" 20 NA 15 NA
"Jack" NA 12 NA 30
"James" 22 NA 14 NA
"James" NA 32 NA 20
I want to merge the rows like this:
name A_1 B_1 A_2 B_2
"Jack" 20 12 15 30
"James" 22 32 14 20
How can I do this?