I have 2 data set that look like this
#set1:
DOB.data <- structure(list(name = c("A", "B", "C"), DOB = c("13/12/2000",
"13/12/2001", "13/12/2002")), class = "data.frame", row.names = c(NA,
-3L))
#set2:
DOB.data2<-structure(list(name = c("A", "B", "C", "DD"), x = c("1", "2", "3","4")), class = "data.frame", row.names = c(NA,
-3L))
How do I match DOB column into the other data set based on their name?
Say DOB.data will match the name and left the other that doesn't have matching data in NA