dupRowInds | R Documentation |
Repeated indices of the first unique value
dupRowInds(m)
m |
A matrix or a data frame. This function is an inverse function to such operations as
This function is faster – at least in the examples tested so far – than
|
A vector of row indices corresponding to the first ocurrence of a given row.
dupRowInds(mtcars[rep(1:10, 10), rep(1:10, 10)])
dupRowInds(matrix(rnorm(1000), ncol = 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.