Also see addNA.
Works great. Sometimes R drives me crazy, but Hadley, you make it much
easier for me
That is nice. The addNA function does not exactly jump off the page for the
(too) casual reader. In the context of the OP's original problem, these
lines of code are illustrative:
Here
Note that the variable below has been generated with cut(), if that matters.
On Wed, Sep 23, 2009 at 2:34 PM, ws webb.spra...@gmail.com wrote:
Webb Sprague webb.sprague at gmail.com writes:
xtabs(~wkhp, x, exclude=NULL, na.action=na.pass)
wkhp
20 30 40 45 60 NA
1 1 10
xtabs(~wkhp, x, exclude=NULL, na.action=na.pass)
wkhp
20 30 40 45 60 NA
1 1 10 1 3 4
Thanks! I must say that this is slightly odd behavior to require both
na.action= AND exclude=. Does anyone know of a justification?
Shouldn't it be changed? vent Ah well, if R were
3 matches
Mail list logo