Re: [R] Using as.formula() with the reshape package cast

2009-04-07 Thread ryan . sheftel
Subject Re: [R] Using as.formula() with the reshape package cast On Tue, 2009-04-07 at 09:47 -0400, ryan.shef...@malbecpartners.com wrote: > I am trying to use the "cast" function from the reshape package, where the > formula is not passed in directly, but as the result of the

Re: [R] Using as.formula() with the reshape package cast

2009-04-07 Thread Gavin Simpson
On Tue, 2009-04-07 at 09:47 -0400, ryan.shef...@malbecpartners.com wrote: > I am trying to use the "cast" function from the reshape package, where the > formula is not passed in directly, but as the result of the as.formula() > function. > > Using reshape v. 0.7.2 > > I am able to properly me

[R] Using as.formula() with the reshape package cast

2009-04-07 Thread ryan . sheftel
I am trying to use the "cast" function from the reshape package, where the formula is not passed in directly, but as the result of the as.formula() function. Using reshape v. 0.7.2 I am able to properly melt() by data with: > molten <- melt(x, id=1:2) then I can properly cast with this:

Re: [R] Using as.formula() with the reshape package cast

2009-04-07 Thread ryan . sheftel
You are correct, passing in a text string works. Thanks for a great package hadley wickham Sent by: manipul...@googlegroups.com 04/07/09 10:32 AM Please respond to manipul...@googlegroups.com To ryan.shef...@malbecpartners.com cc manipul...@googlegroups.com, r-help@r-project.org Subject Re

Re: [R] Using as.formula() with the reshape package cast

2009-04-07 Thread hadley wickham
On Tue, Apr 7, 2009 at 8:44 AM, wrote: > > I am trying to use the "cast" function from the reshape package, where the > formula is not passed in directly, but as the result of the as.formula() > function. > > Using reshape v. 0.7.2 > > I am able to properly melt() by data with: > >> molten <- mel