dupRowInds {pnd} | R Documentation |
Repeated indices of the first unique value
Description
Repeated indices of the first unique value
Usage
dupRowInds(m)
Arguments
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
|
Value
A vector of row indices corresponding to the first ocurrence of a given row.
Examples
dupRowInds(mtcars[rep(1:10, 10), rep(1:10, 10)])
dupRowInds(matrix(rnorm(1000), ncol = 10))
[Package pnd version 0.1.0 Index]