[R] including NAs in a table

Robert.King@mailbox.gu.edu.au Robert.King at mailbox.gu.edu.au
Tue Nov 16 05:46:00 CET 1999


I have two factors, WC and WD.  If I want a table including all the values
of each factor, including NAs, I can get a table by going:

table(as.character(WC),as.character(WD),exclude=c())

Is there an easier way?

I guess this is a feature request for table()

Thanks,
Robert.
----
Robert King, Australian Environmental Studies, Griffith University, Australia
3875 6677   Robert.King at mailbox.gu.edu.au   http://www.ens.gu.edu.au/robertk/


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list