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
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
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
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
4 matches
Mail list logo