Re: [R] reshaping the data

2017-07-03 Thread Bogdan Tanasa
anasa > > Sent: Monday, July 3, 2017 9:22 AM > > To: r-help > > Subject: [R] reshaping the data > > > > Dear all, > > > > I would appreciate please a piece of help regarding the use of > acast/dcast > > functions in reshape2 package. > > > > Spec

Re: [R] reshaping the data

2017-07-03 Thread PIKAL Petr
r-help-boun...@r-project.org] On Behalf Of Bogdan > Tanasa > Sent: Monday, July 3, 2017 9:22 AM > To: r-help > Subject: [R] reshaping the data > > Dear all, > > I would appreciate please a piece of help regarding the use of acast/dcast > functions in reshape2 package. >

Re: [R] reshaping the data

2017-07-03 Thread Jim Lemon
Hi Bogdan, If you want something like this: 22M 17M 11M AEBP1 SNV SNV NA ATR INDEL NA NA ATR SNV NANA BTKNA NA SNV BTK NA NA INDEL You're in trouble with repeated row names. Same with column names i

[R] reshaping the data

2017-07-03 Thread Bogdan Tanasa
Dear all, I would appreciate please a piece of help regarding the use of acast/dcast functions in reshape2 package. Specifically, I'm working with a data frame, that has information about SAMPLE, GENE, and TYPE of MUTATION (as shown below): SampleGene Type 22M AEBP1 SNV 17M AE