toPositiveIndices | R Documentation |
Convert negative indices to positive indices where negative indices are interpreted as indices counting from the back of the vector
toPositiveIndices(indices, n)
indices |
vector of integer indices |
n |
maximum index. The index -1 is mapped to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.