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]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to