Hi there, I have a two-entrance dataframe, and I would like generate a new dataframe with its frequency. I tryed this site<-rep(c("s1","s2","s3"),20) species<-rep(c("a","b","a","c","d"),12) df<-data.frame(cbind(site,species)) df2<-table(df) But when I convert df2 to data.frame I miss the square format. I would like have my data.frame like this: site a b c d s1 8 4 4 4 s2 8 4 4 4 s3 8 4 4 4 Any help? Miltinho --------------------------------- VocĂȘ quer respostas para suas perguntas? Ou vocĂȘ sabe muito e quer compartilhar seu conhecimento? Experimente o Yahoo! Respostas! [[alternative HTML version deleted]]