| rankMulti | R Documentation | 
This function ranks values in a data frame or matrix by more than one field, with ties in one field broken by subsequent fields.
rankMulti(x, cols = 1:ncol(x), ...)
x | 
 Data frame or matrix.  | 
cols | 
 Names or indices of columns by which to rank, with first one gaining preference over the second, second over the third, etc.  | 
... | 
 Arguments to pass to   | 
Numeric vector of ranks.
x <- data.frame(x1=c('a', 'b', 'b', 'c', 'a', 'a'), x2=c(11, 2, 1, NA, 10, 11))
rankMulti(x)
rankMulti(x, c('x2', 'x1'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.