>> 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 internally consistent or corresponded to typical programming Unix practices, it just wouldn't feel the same ... </vent> Cheers! > -- > David Winsemius, MD > Heritage Laboratories > West Hartford, CT > > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.