Can someone help with the following please?
In the code below, I want to do the following:
Filter on ID 3 and then replace the NA value in the 'Code' column with a value, lets say in this case "N3". And also filter on ID 4 and replace NA in 'Code' column with "N4" - How do I do that please?
df <- tibble(
ID = c(1, 2, 3, 4, 5),
Area = c("North", "West", "South", "East", "West"),
Code = c("N1,", "N2", NA, NA, "N5")
)