Description Usage Arguments Value
Given the row and column of elements in an m <c3><97> n matrix, compute the single index which can be used to access those elements of A (also works if r and c are vectors)
1 | as.index(rows, rownum, colnum)
|
rows |
Total number of rows in the matrix. Scalar value. |
rownum |
row subscript. vector of any length. |
colnum |
column subscript. vector of any length. |
A numeric vector of linear indices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.