Displaying 2 results from an estimated 2 matches for "mmaa".
Did you mean:
maa
2008 Feb 21
1
update don't find an object
Hi,
I have a situation here.
I try this update:
mmaa <- update(mma,biomass~qvartemp)
but I have this message:
Error in eval(expr, envir, enclos) : object "qvartemp" not found
but this object exist:
[1] "cont" "i" "levelsord" "mma" "qvar" "qvarmma"
[...
2008 Apr 20
3
Problem with object inside a function
...object with a new formula:
> new.form <- as.formula(gsub(qvar,"qvartemp",as.expression(mma$formula)))
Look this new object:
> print(new.form)
Riqueza ~ Biomassa * qvartemp
Now here is the problem, I try to update an existing model (mma) changing the
formula by the new.form
mmaa <- update(mma,new.form)
But my function is aborted with this message:
Error in eval(expr, envir, enclos) : object "qvartemp" not found
If I create this object qvartemp in R section manually it my function work,
because it get the object from my workspace (but it is usefull just for...