I am using merge function on two data frames A and B
nrow(A) <- 11537
nrow(B) <- 734
But when I apply merge function as follows:
m <- merge(A,B,all.x=TRUE,by="id")
nrow(m) <- 29730
I get "m" with 29730 rows. "m" should have 11537 rows only as I am merging B into A. I am not able to identify reasons behind this. Can somebody please help me? What is getting added in "A"?
File is big, I cannot check manually.