Re: [R] data reshape

2019-12-20 Thread Yuan Chun Ding
Cc: r-help@r-project.org Subject: Re: [R] data reshape [Attention: This email came from an external source. Do not open attachments or click on links from unknown senders or unexpected emails.] It is perhaps worth noting that

Re: [R] data reshape

2019-12-20 Thread Bert Gunter
; One my way to work place this morning, I changed my intension; I will not >> reshape to wide format and actually like the long format I generated. I >> will read in a VNTR marker annotation file including VNTRid in first column >> and marker locations in human chromosomes in the sec

Re: [R] data reshape

2019-12-20 Thread Bert Gunter
the 652 file I read in. > > > > Do you know a good way to merge all those 652 files (with two columns) ? > > > > Thank you, > > > > Ding > > > > > > #merge all 652 files into one file with VNTRid as first column, 2nd to > 653th column are genot

Re: [R] data reshape

2019-12-20 Thread Yuan Chun Ding
erge all 652 files into one file with VNTRid as first column, 2nd to 653th column are genotype with header #as sample ID, so From: Bert Gunter [mailto:bgunter.4...@gmail.com] Sent: Thursday, December 19, 2019 6:52 PM To: Yuan Chun Ding Cc: r-help@r-project.org Subject: Re: [R] data reshape __

Re: [R] data reshape

2019-12-19 Thread Bert Gunter
Did you even make an attempt to do this? -- or would you like us do all your work for you? If you made an attempt, show us your code and errors. If not, we usually expect you to try on your own first. If you have no idea where to start, perhaps you need to spend some more time with tutorials to le

[R] data reshape

2019-12-19 Thread Yuan Chun Ding
Hi R users, I have a folder (called genotype) with 652 files; the file names are GTEX-1A3MV.out, GTEX-1A3MX.out, GTEX-1B8SF.out, etc; in each file, only one column of data without a header as below 201 2/2 238 3/4 245 1/2 . 983255 3/3 983766 None A total of 20528 rows; I need to read al