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