Description Usage Arguments Details Value
Take a vector v of indices,
then simplify the indexing system
and compact it from 1 to length(unique(v)).
1 |
v |
a vector of integers, used as indices. |
The indexing vector v is simplified
and compacts from 1 to length(unique(v)).
The index order is not changed, only the labels are changed.
The function is useful
for debugging computations on values sorted by a program.
Return a vector of integer,
that can be browsed by the code seq_len(length(unique(v))).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.