ijtok {crochet} | R Documentation |
ijtok
is a helper function that converts two-dimensional indices
i
and j
to a one-dimensional index k
. This can be
useful if, for example, one-dimensional indexing is easier to implement
than two-dimensional indexing.
ijtok(x, i, j)
x |
A matrix-like object. |
i |
The first component of a two-dimensional index. |
j |
The second component of a two-dimensional index. |
It is assumed that all indices are one-based.
A one-dimensional index.