Skip to content

For wishlist: sanity checks for subsets in lm, glm (PR#

1 message · Peter Dalgaard

#
Martyn Plummer <plummer@iarc.fr> writes:
They're sometimes relevant because they show what has been considered
a bug in 3.x... The convert-to-factor conventions in 3.x (and R) are
quite a bit of a pain in my opinion, but I'm afraid we're stuck with
them at least for the near future (we couldn't make an API change as
pervasive as that without bumping the major version number).
Maybe, but... Getting people to program around S/R differences in
their add-on packages haven't always been unproblematic.

What would also catch your case would be to disallow factors as subset
variables, and I can't think of any situation where subsetting with a
factor would occur naturally. Does 5.1 allow subsetting with factors?