I want to fill in missing data in a column.
Here is an example of the data that I have. The 1st column shows an employee name and the second column correlates to the region that they are working in. Each employee only works in 1 of the locations and does not work in more than one. So in the below example since the non missing values for Bill show East, then Bill works in the East location. My question is how do I replace all the NAs for Bill to the correct region. And how can I do that for each of the other employees as well.
Name Region
1 Bill East
2 Bill East
2 Bill NA
4 Bill NA
5 Karen NA
6 Karen South
7 Karen NA
8 Richard NA
9 Richard West
10 Richard NA
11 Richard West