Re: [Rd] Problem with correct usage of formula environment

2009-08-26 Thread Ulrike Groemping
I have found a fix now - I define the variable "center" (that takes the role of the !iscube below) within the function formula.design, and then using "formula" instead of "as.formula" solves the issue, because it preserves the calling environment - first time I get an idea what this is good for ..

[Rd] Problem with correct usage of formula environment

2009-08-25 Thread Ulrike Groemping
Dear all, I am working on a function formula.design that should automatically generate reasonable lm formulae for a number of different designs. All works well as long as all variables used are columns of the design data frame. For one function, I would like to incorporate a dummy variable for c