matcomb | R Documentation |
create matrix indices from row and columns positions
matcomb(r, c)
r |
integer vector of row positions |
c |
integer vector of column positions |
rows rotate faster than columns
a k by 2 matrix of matrix indices where k = length(r) * length(c)
Jens Oehlschlägel
row
, col
, expand.grid
matcomb(1:3, 1:4)
matcomb(2:3, 2:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.