Re: [R] Reshape:cast; error using "..." in formula expression.

2011-06-12 Thread Hadley Wickham
Yes, the basic problem is that you forgot to melt the data before trying to cast it. Hadley On Thursday, June 9, 2011, misterbray wrote: > Dennis, doing some more research, and it seems you actually can include the > ... term directly in the formula: cf. page 8 of > http://www.had.co.nz/reshape/

Re: [R] Reshape:cast; error using "..." in formula expression.

2011-06-09 Thread misterbray
Dennis, doing some more research, and it seems you actually can include the ... term directly in the formula: cf. page 8 of http://www.had.co.nz/reshape/introduction.pdf (that article also explains why you might want to do so). It seems including the ... term only works, however, when your value co

Re: [R] Reshape:cast; error using "..." in formula expression.

2011-06-09 Thread misterbray
Wow---Dennis, your answer makes me feel good about humanity. Thank you; you've made my day. Yours, Rob -- View this message in context: http://r.789695.n4.nabble.com/Reshape-cast-error-using-in-formula-expression-tp3584721p3586482.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Reshape:cast; error using "..." in formula expression.

2011-06-09 Thread Dennis Murphy
Hi: Short answer: use one dot, not three: > cast(french_fries, . ~ subject) Using painty as value column. Use the value argument to cast to override this choice Aggregation requires fun.aggregate: length used as default value 3 10 15 16 19 31 51 52 63 78 79 86 1 (all) 54 60 60 60 60 54 60 60

[R] Reshape:cast; error using "..." in formula expression.

2011-06-09 Thread misterbray
Whenever I use "..." in the formula of the cast function, from the reshape package, I get the following error: Error in `[.data.frame`(data, , variables, drop = FALSE) : undefined columns selected For example: data(french_fries) #available in the reshape package > head(french_fries) time