indices | R Documentation |
This is used in conjunction with apply to get around doing nested loops in R. This function is slightly faster than expand.grid. This function was lifted from a discussion on stackoverflow.
indices(seq, only.unique = TRUE)
seq |
The first Sequence. |
only.unique |
Makes sure to return only i,j and not both [i,j] and [j,i] values |
A matrix of indicies
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.