[R] Counting unique items in a list of matrices

jcress410 justin.cress at uky.edu
Thu Oct 7 18:36:07 CEST 2010

I may or may not have the most elegant solution to this problem, but if it
were me, I would probably put them all in a list and then   

unique_matrix_list <- unique(list_of_matrix)

# number of unique matricies: 

# count the number of each matrix, 
for (m in unique_matrix_list) {
count_m <- which(list_of_matrix == m) 

but, i havent done this myself. 



and maybe that'll help. 

View this message in context: http://r.789695.n4.nabble.com/Re-Counting-unique-items-in-a-list-of-matrices-tp2967112p2967151.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list