util.sub2ind | R Documentation |
This function is somewhat the equivalent of the Matlab sub2ind.
ind <- sub2ind(i,j,n), then A[i,j] == A[ind] if dim(A)[1] == n
i |
row index |
j |
column index |
n |
number of rows |
the linear index.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.