From: zhihua li <lzhtom_at_hotmail.com>

Date: Tue 21 Jun 2005 - 22:46:25 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jun 21 22:56:57 2005

Date: Tue 21 Jun 2005 - 22:46:25 EST

Suppose I have a factor X, with 10 elements and 3 levels: A B B C A C B A C C .

It is easy to count the number of elements for each level: tapply(X,X,length).

Now I have another factor Y, which formed a matrix with X:

X| A B B C A C B A C C

Y| B B C C C A A A B B

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jun 21 22:56:57 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:32:55 EST
*