I have a small matrix where the columns represents a ranking and the values
are the number of times each ranking was obtained eg 

     1  2  3
x   1  2  0
y   0  1  2
z   2  0  1

I'd like to be able to return an average of the ranking obtained
   average
x  1.67
y  2.67
z  1.67

Whats the nicest way to do this? I'm new to the language and looking for an
elegant solution :)

Thanks
  Ben




-- 
View this message in context: 
http://www.nabble.com/Obtaining-average-ranking-from-matrix-of-frequencies-tp22825754p22825754.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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