On Mon, 24 Oct 2011, David Winsemius wrote:
You could also have saved the subsetted data, applied `factor` to the
subsetted column and then used `xtabs`.
temp <- subset(chemdata, <your subset criteria>, <your column selection>)
temp$param <- factor(temp$param)
(Now only levels that exist are in the temp version.)
David,
Thank you. I have saved the subsetted values. I'll compare the above with
what I did.
Perhaps because it's Monday the R help system is not working well. When I
type ?xtab or ?dcast I'm told no help is available. Had the same result with
?subset until I quit R, closed emacs, and started again. Quite strange.
Rich
______________________________________________
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.