Description Usage Arguments Value
Identify which rows of a matrix are unique and which are duplicates, including identifying which row they are a duplicate of. Unique rows are numbered sequentially.
1 |
mat |
A matrix like object |
A list containing the a vector of unique row indices
indeces, corresponding to each rows coresponding unique row in
a deduplicated matrix, and a logical vector showing whether each row is
duplicate (duplicated). These two vectors are sufficient to
extract a deduplcated matrix (deduped <- mat[!duplicate,]) and
reconstruct the original (mat == deduped[indeces,]).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.