I have merge two datasets on the variable Name in R. I need a way to combine the School.x and School.y columns so that the NA fields are filled in by the other column. I assume there is some easy way in R to do this- anyone have ideas?
Image of a sample of the merged data below (couldn't paste the table for some reason.)
Bonus if you can figure out how to make it so that if School.x and School.y both have a value, the merged column just takes the default value from School.x (For example, if Chloe was listed as attending Lincoln in School.x but Lincoln High in School.y, I just want the column to default to Lincoln.)
Thanks so much!