[R] How to Merge based on Rows

2010-01-08 Thread MRKidd
Let's say that I have a bunch of matrices. They look like this (pardon using fruit for examples, my actual data tables are far too enormous): Matrix1 Apples Oranges Pears A 5 6 7 B 5 3 4 C 8 9 10 D 11

[R] A better way to Rank Data that considers ties

2010-01-08 Thread MRKidd
This will start off sounding very easy, but I think it will be very complicated. Let's say that I have a matrix, which shows the number of apples that each person in a group has. OriginalMatrix-matrix(c(2,3,5,4,6),nrow=5,ncol=1,byrow=T,dimnames=list(c(Bob,Frank,Joe,Jim,David),c(Apples)))