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