Skip to content
Prev 12072 / 63424 Next

update forgets about offset() (PR#6656)

On Tue, 9 Mar 2004 Mark.Bravington@csiro.au wrote:

            
Sorry, but that is a common programming error.  The possible values of
attr(terms, "response") are 0 or 1 (although code should not rely on the 
non-existence of 2, 3, ...).  foo[-0] == foo[0] is a length-0 vector.

Also, in R please use rownames(): it is easier to read and safer.
That is allowed, and works in general.
The issue here is the code to remove offset terms fails if two successive 
terms are offsets, but not otherwise.