Skip to content
Prev 56846 / 63421 Next

Give update.formula() an option not to simplify or reorder the result -- request for comments

Hi Pavel
(Back On List)

And my two cents...
Firstly, note that the constructor for formula objects behaves differently
to the update method, so I think any changes should be consistent between
the two functions.
y ~ x + x
y ~ x

Interestingly, this doesn't simplify.
y ~ I(x) + x

I think that simplification could mean different things.
So, there could be something like:
y ~ I (2 * x)

I don't know how easy that would be to implement.
(Symbolic computation on par with computer algebra systems is a discussion
in itself...).
And you could have one argument (say, method="simplify") rather than two or
more logical arguments.

It would also be possible to allow partial forms of simplification, by
specifying which terms should be collapsed, however, I doubt any possible
usefulness of this, would justify the complexity.
However, feel free to disagree.

You made an interesting comment.
Can I ask what these purposes are?


kind regards
Abs