Array: make matrix indices from row and columns positions
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.