Re: [R] strange output with merge function

2019-12-03 Thread Ana Marija
HI Jeff, the issue got resolved after I converted data in as.data.frame. Thank you for the useful input! Ana On Tue, Dec 3, 2019 at 12:46 PM Jeff Newmiller wrote: > My guess would be that your key columns are factors with different levels. > You have to be very careful manipulating factors...

Re: [R] strange output with merge function

2019-12-03 Thread Jeff Newmiller
My guess would be that your key columns are factors with different levels. You have to be very careful manipulating factors... I recommend using character data until you are ready to do analysis steps that need factors. You may be able to resolve this by importing your data with the as.is=TRUE o

[R] strange output with merge function

2019-12-03 Thread Ana Marija
Hi, I have two data frames like this: > head(a) V1V2 V3 V4 V5 V6 V7 V8V9 V10 1: ENSG0272636 chr17 181637 181636 - 4924 -769472 rs7216126 chr17 951108 2: ENSG0273172 chr17 191588 191587 - 4978 40553 rs62053745 chr17 151035 3: ENSG