I have a problem while merging two databases. I have a table A with 3094 rows and a table B with 235 rows. I need to merge them as a Left outer, that is with all observations in A. I obtain this:
dim(A)[1]
#[1] 3094
dim(B)[1]
#[1] 235
AB <- merge(A,B,by="id",all.x=T)
dim(AB)[1]
#[1] 3104
I can't understand why I obtain this. There exist an aditional argument that I can use? I will be grateful with your help.