[Rd] when to use pairlist instead list

2010-12-06 Thread William Dunlap
I was writing some assertion tests for modelling-related code I had written and was surprised to see one test fail because the specials attribute of the output of terms() is a pairlist instead of a list. In 2.12.0 I get: dput(attr(terms(y~Spec(x1)+x2, specials=c(Spec)), specials)) list(Spec

Re: [Rd] when to use pairlist instead list

2010-12-06 Thread Prof Brian Ripley
On Mon, 6 Dec 2010, William Dunlap wrote: I was writing some assertion tests for modelling-related code I had written and was surprised to see one test fail because the specials attribute of the output of terms() is a pairlist instead of a list. In 2.12.0 I get: