Hi,
I met another interesting question when practicing with R. I just want to combine D1 and D2, to get the dataframe like D3 that have full information. It seems that some function about"join" doesn't work.(I know D1[1,2]<-3 is right. But we may met many data in other case. Here just an example data). Thank you for help in advance.
c1<-c(2,6)
c2<-c(NA,5)
D1<-data.frame(c1,c2)
c3<-c(NA,NA)
c4<-c(3,NA)
D2<-data.frame(c3,c4)
C5<-(2,6)
C6<-(3,5)
D3<-data.frame(c5,c6)
Created on 2023-05-28 with reprex v2.0.2