Skip to content
Prev 237500 / 398500 Next

Counting unique items in a list of matrices

If you just want a list of matrices and their counts, you can use
Peter's list of matrices, L, and then:

With plyr:

require(plyr)
count(unlist(lapply(L, toString)))

Without plyr:

as.data.frame(table(unlist(lapply(L, toString))))

Cheers,

Jeff.
On Sat, Oct 9, 2010 at 12:44 PM, Peter Ehlers <ehlers at ucalgary.ca> wrote: