b[,17] <- merge(a, b, by = "Date", all.y = TRUE)[ ,"RegID"]
There is a RegID column in both a and b... which produces an error.
"Error in `[.data.frame`(merge(a, b, by = "Date", all.y = TRUE), : undefined columns selected"
I could change the name in "a", but believe that there is probably an override which can fix this issue.
Can someone give a quick assist?