Skip to content
Prev 5942 / 63462 Next

xtabs, drop.unused.levels (PR#1041)

martin.lenze@to.com writes:
Yes, that's a bug. The culprit is

  do.call("table", mf)

using "mf" rather than "by" which was carefully computed to handle
drop.unused.levels a couple of lines above.

Actually, I think that table(by) would work just as well (and look better).

(A quick workaround could be y$B <- factor(y$B))