Displaying 1 result from an estimated 1 matches for "navire".
Did you mean:
navare
2006 Sep 18
2
merge gives me too many rows
...file I name in the call to merge.
With a large dataframe using a lot of "by" variables, the number of
rows of the merged dataframe increases from 177325 to 179690:
>dim(test)
[1] 177325 9
> test2 <- merge(test, fish, by=c("predateu", "origin", "navire",
"nbpc", "no_rel", "trait", "tagno"), all.x=F)
> dim(test2)
[1] 179690 11
I tried to make a smaller dataset with R commands that I could post
here so that other people could reproduce, but merge behaved as
expected: final number of rows w...