Displaying 1 result from an estimated 1 matches for "uniquevar".
Did you mean:
uniquevars
2012 Jun 14
0
Complex summary of counts of rank positions over multiple dataframes
...contain a list of all 'vars' (overall in all dataframes), and counts of their ranks. For the example: There are 7 unique 'vars' in all dataframes (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,ran...