Re: [R] inverse function of melt

2010-06-18 Thread Henrique Dallazuanna
Try this: xtabs(value ~ YEAR + variable, x) On Fri, Jun 18, 2010 at 10:39 AM, n.via...@libero.it wrote: > > Dear list, > I'm looking for an inverse function of melt(which is in package > reshape).Namely, I had a data frame like this > (Table1) > > YEAR VAR1 VAR2 VAR3 > 1995 7

Re: [R] inverse function of melt

2010-06-18 Thread Joris Meys
http://had.co.nz/reshape/ please, do at least some effort before you post a question, so people don't have to point out that your question can easily be solved by reading the f*cking manual. cheers Joris On Fri, Jun 18, 2010 at 3:39 PM, n.via...@libero.it wrote: > > Dear list, > I'm looking fo

Re: [R] inverse function of melt

2010-06-18 Thread Steven McKinney
Subject: [R] inverse function of melt Dear list, I'm looking for an inverse function of melt(which is in package reshape).Namely, I had a data frame like this (Table1) YEAR VAR1 VAR2 VAR3 1995 7 3 45 1996 5 632 1997 6 10

[R] inverse function of melt

2010-06-18 Thread n.via...@libero.it
Dear list, I'm looking for an inverse function of melt(which is in package reshape).Namely, I had a data frame like this (Table1) YEAR VAR1 VAR2 VAR3 1995 7 3 45 1996 5 632 1997 6 10 15 I transformed my data by using th