On Thu, 8 Apr 2004, Ed L Cashin wrote:
>
> One thing I notice is that I get funny row names using this method. I
> can change them back easily enough, though.
>
I think you can use interaction() rather than the factor(paste()) approach
interaction(d$a, d$b, drop=TRUE) gives a factor with one level for each
existing combination of d$a and d$b.
-thomas
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html