JFRI (Jesper Frickmann) wrote:

I want a list of the number of times some factor levels appear together,



Say a and b are the names of the factors:


table(a,b)

table(a:b)

aggregate(a,list(a=a,b=b),length)

Christophe Pallier
http://www.pallier.org

______________________________________________
[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

Reply via email to