Say I have the following 12x3 matrix
m<-rbind(c(0,7,0),c(1,1,5),c(6,1,1),c(1,3,-3),c(1,3,-3),c(1,1,5),
c(0,7,0),c(1,1,5),c(1,1,5),-c(0,7,0),c(1,1,5),c(1,3,-3))
and would like to count the number of times each row vector occurs. What should I do?
I tried to use table(), but table()only takes into account the elements.