R-list,

Suppose I have

 oldfmla <- y ~ x

I would like to update it to  y ~ x + z  which I know I can get using

 newfmla <- update(oldfmla, ~ . + z)

However, what if I have

fmlatmp <- ~ z

Can I combine oldfmla and fmlatmp to get  y ~ x + z  some how?

Clearly,

 newfmla <- update(oldfmla, ~ . + fmlatmp)

will not work.

Thanks in advance,
Danny

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to