Chromosome position sample files merging in R
0
0
Entering edit mode
3.8 years ago
mmh7272 ▴ 60

Hi i am R bignner student

I already searched some packages dplyr, plyr ...but i can not hadle this data merging Plz tell me to advise

I have 50 data txt files like that

File1.txt

Chrom Position Parent1 Parent2 Sample1

1 1 A B A

1 2 A B B

1 3 A B A

1 4 A B B

File2.txt

Chrom Position Parent1 Parent2 Sample2

1 1 A B B

1 2 A B A

1 3 A B A

So i wanna mergeing

MergingFiles.txt

Chrom Position Parent1 Parent2 Sample1 Sample2


1 1 A B A B

1 2 A B B A

1 3 A B A A

1 4 A B B Na

If you have solution plz comment thank you

R snp • 817 views
ADD COMMENT
0
Entering edit mode

use dplyr full_join function

ADD REPLY
0
Entering edit mode

Thank you for ur advice i try

ADD REPLY

Login before adding your answer.

Traffic: 2900 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6