search for: check_formula

Displaying 3 results from an estimated 3 matches for "check_formula".

2008 Mar 25
2
ggplot2 - facetting
...ng=aes_string(x='x',y='y'),geom='point', stat='identity') scaleY<-scale_y_continuous() scaleX <- scale_x_continuous() Facets<-facet_grid(group ~ .) plot1<-plot0+layer1 +scaleY + scaleX + facet_grid(group~.) plot1 I always get the error message: Error in check_formula(formula, varnames) : Formula contains variables not in list of known variables Thanks for any help you can provide. Best, Pedro
2008 Sep 28
1
reshape package does not recognize second id variable
...include a subject identification number and a variable denoting the wave of the survey. I used the following arguments: library(reshape) svy.melt <- melt(svy, id=c("id", "WAVE")) svy.wide <- cast(svy.melt, id ~ WAVE + ...) and got the following error: "Error in check_formula(formula, varnames) : Formula contains variables not in list of known variables" I check to make sure variable name is right, and it is: summary(svy$WAVE) Min. 1st Qu. Median Mean 3rd Qu. Max. 1.00 1.00 1.00 1.47 2.00 2.00 ________________________ I use the s...
2009 Apr 07
2
Using as.formula() with the reshape package cast
...ction. 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: > cast(molten, days ~ variable) but if I try > cast(molten, as.function("days ~ variable")) if returns the error: Error in check_formula(formula, varnames) : Formula contains variables not in list of known variables I am not sure if the problem is with cast or as.formula() I did confirm that: > x <- days ~ variable > y <- as.formula("days ~ variable") > x==y TRUE [[alternative HTML ver...