search for: french_fries

Displaying 2 results from an estimated 2 matches for "french_fries".

2011 Jun 09
2
Reshape:cast; error using "..." in formula expression.
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 treatment subject rep potato buttery grassy rancid painty 61 1 1 3 1 2.9 0.0 0.0 0.0 5.5 25 1 1 3 2 14.0 0.0 0.0 1.1 0.0 62 1 1 10 1 11.0 6...
2008 Nov 26
1
Reshape with var as fun.aggregate
I used to be able to use variance for fun.aggregate, but since I upgraded from R 2.6 to 2.7 (Ubuntu hardy to intrepid), it no longer works. > library("reshape") > data("french_fries") > ffm <- melt(french_fries, id=1:4, na.rm = TRUE) > cast(ffm, rep ~ treatment, length) rep 1 2 3 1 1 579 578 575 2 2 580 579 580 > cast(ffm, rep ~ treatment, mean) rep 1 2 3 1 1 3.207772 3.177336 3.024522 2 2 3.181207 3.115544 3.277759 >...