Jean: Thanks! 

Works great!


Lars
Op 27 sep. 2011 (w39), om 17:22 heeft Jean V Adams [via R] het volgende geschreven:

df <- as.data.frame(unclass(xt)) 

dfu <- unique(df) 
class_cnt <- apply(dfu, 1, sum) 
subject_cnt <- tabulate(match(apply(df, 1, paste, collapse="-"), 
        apply(dfu, 1, paste, collapse="-"))) 

data.frame(subject_cnt, class_cnt, dfu) 



--
View this message in context: http://r.789695.n4.nabble.com/Counting-similar-rows-tp3847051p3847973.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

