You can use the pracma: Practical Numeric Math library (provides a large number of functions from numerical analysis and linear algebra, numerical optimization, differential equations, time series, as well as some well-known special mathematical functions.).
Install it using the command below in the R console: install.packages ("pracma", repos = "http://R-Forge.R-project.org") You can use the library then: library (pracma) Rank (object your matrix)
source share