search for: rank2a

Displaying 1 result from an estimated 1 matches for "rank2a".

Did you mean: rank2
2012 Jun 14
0
Complex summary of counts of rank positions over multiple dataframes
...ataframes (A,B,C,D,G,J,K) and e.g. A is two times on the first position and 1 time on the second rank etc. A resulting dataframe could look like: uniquevars <- c("A","B","C","D","G","J","K") rank1a <- c(2,1,0,0,0,0,0) rank2a <- c(1,2,0,0,0,0,0) rank3a <- c(0,0,1,1,1,0,0) rank4a <- c(0,0,1,1,0,0,1) result_a <- data.frame(uniquevars,rank1a,rank2a,rank3a,rank4a) In addition I would like to have for all populated 'cells' of the result_a-dataframe the sum of the all 'values' from the orig...