Re: [R] simple reshape

2013-01-22 Thread arun
-- From: Jim Lemon To: Troels Ring Cc: r-help@r-project.org Sent: Tuesday, January 22, 2013 4:46 AM Subject: Re: [R] simple reshape On 01/22/2013 07:19 PM, Troels Ring wrote: > Dear friends - this is a very simple question - I have a data frame > 'data.frame': 87 obs. of 3 variab

Re: [R] simple reshape

2013-01-22 Thread Jim Lemon
On 01/22/2013 07:19 PM, Troels Ring wrote: Dear friends - this is a very simple question - I have a data frame 'data.frame': 87 obs. of 3 variables: $ ID : int 1 1 1 2 2 2 3 3 3 4 ... $ prep : num 1.18 1.38 1.34 1.93 2.38 2.24 1.17 1.13 1.21 1.89 ... $ postp: num 0.63 0.71 0.75 1.01 1.12 1.07 0.8

[R] simple reshape

2013-01-22 Thread Troels Ring
Dear friends - this is a very simple question - I have a data frame 'data.frame': 87 obs. of 3 variables: $ ID : int 1 1 1 2 2 2 3 3 3 4 ... $ prep : num 1.18 1.38 1.34 1.93 2.38 2.24 1.17 1.13 1.21 1.89 ... $ postp: num 0.63 0.71 0.75 1.01 1.12 1.07 0.87 0.64 0.7 0.8 ... - 29 persons

Re: [R] Simple reshape problem I am completely missing

2012-07-24 Thread arun
A.K. - Original Message - From: Ista Zahn To: jose Bartolomei Cc: R Help Sent: Tuesday, July 24, 2012 1:56 PM Subject: Re: [R] Simple reshape problem I am completely missing The data is already in a "long" form, it doesn't require melting. The problem was simply that

Re: [R] Simple reshape problem I am completely missing

2012-07-24 Thread arun
42 15.31574 14.34785 2    X2 14.50404 14.69673 13.73331 A.K. - Original Message - From: John Kane To: r-help@r-project.org Cc: Sent: Tuesday, July 24, 2012 1:17 PM Subject: [R] Simple reshape problem I am completely missing I seem to be doing something really stupid or missing some

Re: [R] Simple reshape problem I am completely missing

2012-07-24 Thread John Kane
..@inbox.com > Subject: Re: [R] Simple reshape problem I am completely missing > > HI, > > I think your group and tps variables have a lot of levels, so the > combinations which are not there might end up as NA. > > > Try this: >  md4<-data.frame(group=c(rep(&quo

Re: [R] Simple reshape problem I am completely missing

2012-07-24 Thread Ista Zahn
Tue, Jul 24, 2012 at 1:23 PM, jose Bartolomei wrote: > > Did you melt first? > > library(reshape2) > ?melt > >> Date: Tue, 24 Jul 2012 09:17:08 -0800 >> From: jrkrid...@inbox.com >> To: r-help@r-project.org >> Subject: [R] Simple reshape problem I am c

Re: [R] Simple reshape problem I am completely missing

2012-07-24 Thread jose Bartolomei
Did you melt first? library(reshape2) ?melt > Date: Tue, 24 Jul 2012 09:17:08 -0800 > From: jrkrid...@inbox.com > To: r-help@r-project.org > Subject: [R] Simple reshape problem I am completely missing > > I seem to be doing something really stupid or missing something real

[R] Simple reshape problem I am completely missing

2012-07-24 Thread John Kane
I seem to be doing something really stupid or missing something really obvious but what? I have a simple three column data.frame that I would like to reshape to wide preferably using reshape2. An example from http://stackoverflow.com/questions/9617348/reshape-three-column-data-frame-to-matrix

[R] simple reshape of a large data frame (reshape() runs out of memory)

2009-12-04 Thread Alexander Belikoff
Hello everyone, I'm having a problem performing reshape() on a large data frame. The operation is fairly trivial but it makes R run out of memory. The data frame has the following structure: ID DATE1 DATE2VALTYPE VALUE 'abcd1233' 2009-11-12