ind2sub | R Documentation |
MATLAB style ind2sub function in R physical essence. Provides the 2D row / column index for a given 1D query
ind2sub(dim, ind, byrow = F)
dim |
dimensions of matrix to query |
ind |
1D index |
byrow |
whether to calculate indices by row or column (= FALSE) |
length(ind) x 2 matrix of row and column index pairs corresponding to input ind in dim "dim" matrix
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.