search for: frmlb

Displaying 1 result from an estimated 1 matches for "frmlb".

Did you mean: frml
2010 Jul 23
1
model.tables call fails with "Error in inherits(object, "formula")"
...seems to occur when as.formula is used inside a function on a string containing "<formula> + Error( x / y )" The reason I tried to use as.formula is to generate dynamic calls to aov(). Here is a minimal example illustrating the problem: ## Example test <- function(dat) { frmlb <- "yield ~ block"; # WORKS aovfit <- aov(as.formula(frmlb), dat); print(model.tables(aovfit, "means")); frmlc <- "yield ~ block + Error(N/block)"; # DOES NOT WORK aovfit <- aov(as.formula(frmlc), dat); print(m...