ij2k | R Documentation |
Converts an (i, j) index to a linear index. Converts the double index of a square matrix to the corresponding linear one. This is column-major as it is default in R.
ij2k(i, j, n)
i |
i index, i.e. row position; indexing starts at 1. |
j |
j index, i.e. column position; indexing starts at 1. |
n |
size of the square matrix. |
Linear position.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.