matcomb: Array: make matrix indices from row and columns positions

View source: R/array.R

matcombR Documentation

Array: make matrix indices from row and columns positions

Description

create matrix indices from row and columns positions

Usage

matcomb(r, c)

Arguments

r

integer vector of row positions

c

integer vector of column positions

Details

rows rotate faster than columns

Value

a k by 2 matrix of matrix indices where k = length(r) * length(c)

Author(s)

Jens Oehlschlägel

See Also

row, col , expand.grid

Examples

  matcomb(1:3, 1:4)
  matcomb(2:3, 2:4)

ff documentation built on Feb. 16, 2023, 7:48 p.m.

Related to matcomb in ff...