Re: [R] drop.terms and [.terms ignores intercept

2010-09-29 Thread Niels Richard Hansen
On 29/09/10 11.13, peter dalgaard wrote: On Sep 29, 2010, at 10:29 , Niels Richard Hansen wrote: The functions drop.terms and [.terms ignores if the intercept has been explicitly removed. Is that a deliberate feature? Perhaps rather an unimplemented one. The root cause is that both function

Re: [R] drop.terms and [.terms ignores intercept

2010-09-29 Thread peter dalgaard
On Sep 29, 2010, at 10:29 , Niels Richard Hansen wrote: > The functions drop.terms and [.terms ignores if the intercept > has been explicitly removed. Is that a deliberate feature? Perhaps rather an unimplemented one. The root cause is that both functions use reformulate() on the "term.labels"

[R] drop.terms and [.terms ignores intercept

2010-09-29 Thread Niels Richard Hansen
Dear R-help list The functions drop.terms and [.terms ignores if the intercept has been explicitly removed. Is that a deliberate feature? For instance, drop.terms(terms(~a+b-1),1) terms(~a+b-1)[2] R version 2.12.0 Under development (unstable) (2010-09-13 r52905) Best, Niels -- Niels Richard