[R] Reshape:cast; error using "..." in formula expression.
    misterbray 
    misterbray at gmail.com
       
    Thu Jun  9 09:10:50 CEST 2011
    
    
  
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.4    0.0    0.0    0.0
26    1         1      10   2    9.9     5.9    2.9    2.2    0.0
63    1         1      15   1    1.2     0.1    0.0    1.1    5.1
27    1         1      15   2    8.8     3.0    3.6    1.5    2.3
>cast(french_fries, ...~ subject)
Using painty as value column.  Use the value argument to cast to override
this choice
Error in `[.data.frame`(data, , variables, drop = FALSE) : 
  undefined columns selected
 
--
View this message in context: http://r.789695.n4.nabble.com/Reshape-cast-error-using-in-formula-expression-tp3584721p3584721.html
Sent from the R help mailing list archive at Nabble.com.
    
    
More information about the R-help
mailing list