[R] Problem with xtabs(), exclude=NULL, and counting NA's
hadley wickham
h.wickham at gmail.com
Thu Sep 24 16:06:14 CEST 2009
> wtf <- factor(x, levels(c(levels(wtf), NA), exclude=NULL)
> xtabs (~ wtf, exclude=NULL, na.action=na.pass)
Also see addNA.
Hadley
--
http://had.co.nz/
More information about the R-help
mailing list