My data frame has some missing values for certain variables. I have put together another data frame that has those missing values. When I try to combine them, it introduces NA values with duplicate columns. I have tried all four joins (left, right, full, inner, anti), but nothing is working. I'm missing some command in left_join, but not sure which one.How do I join these?
dat_nc <- left_join(dat_NC, dat_missing, by = c("year", "location", "spread_event"))
I am expecting to replace missing values with the values from another data frame.