Re: [Rd] Potential bug in update.formula when updating offsets

2019-08-06 Thread peter dalgaard
Terry, Martin Would this happen to be related to the "indexing term objects" issue that has been bothering you? -pd > On 5 Aug 2019, at 21:44 , Paul Buerkner wrote: > > Hi all, > > update.formula does not seem to correctly update (i.e. remove in my case) > offset terms. > > Here is an examp

[Rd] Potential bug in update.formula when updating offsets

2019-08-06 Thread Paul Buerkner
Hi all, update.formula does not seem to correctly update (i.e. remove in my case) offset terms. Here is an example: update(~x + offset(z), ~ . - offset(z)) > ~x + offset(z) Also: update(~x, ~ . - offset(z)) > ~x + offset(z) In both cases, I would expect the result > ~x as - should remove