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

Description Usage Arguments Details Value Author(s) See Also Examples

Description

create matrix indices from row and columns positions

Usage

1
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

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

OHDSI/ff documentation built on May 7, 2019, 8:30 p.m.