Description Usage Arguments Value Examples
Count the inversions in a vector.
1 | vec_inv(vec)
|
vec |
A numerical vector (theoretically, with no repeated values). |
The number of pairs of entries i and j of vec
for which
i > j.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.