I am trying to replace the NA value in one row and column with a value in the same column but based on the conditional value in another column. However, I also need to maintain the 567 value for column Value_1. I don't think my code would be helpful in this instance. The data looks like:
Group_Name Value_1 Status
A NA NA
A 12345 Active
A 567 NA
The end result should be something like:
Group_Name Value_1 Status
A 12345 NA
A 12345 Active
A 567 NA
Any solution with tidyverse, data.table, or base R would be greatly appreciated