[R] model.tables call fails with Error in inherits(object, formula)

2010-07-23 Thread Hannes
Hello, I noticed that model.tables fails when applied to an aov() fit if called inside a function. The problem 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().

Re: [R] model.tables call fails with Error in inherits(object, formula)

2010-07-23 Thread Prof Brian Ripley
The error message actually is Error in inherits(object, formula) : object 'frmlc' not found and it is the omitted-by-you part after the colon that matters: the body of model.tables does not have 'frmlc' in its scope. Here is one approach to using dynamic formulae that works in a lot of