On Fri, 16 Jun 2017, Dario Strbenac wrote:
Good day,
It's not described anywhere in the help page, but tapply and by
functions will, by default, convert factors into numeric values. Perhaps
this needs to be documented or the behaviour changed.
It *is* described in the help page.
This re
Good day,
It's not described anywhere in the help page, but tapply and by functions will,
by default, convert factors into numeric values. Perhaps this needs to be
documented or the behaviour changed.
> tapply(1:3, 1:3, function(x) factor(LETTERS[x], levels = LETTERS))
1 2 3
1 2 3
The documen