Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

matcomb

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

Examples

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

ff

Memory-Efficient Storage of Large Data on Disk and Fast Access Functions

v4.0.4
GPL-2 | GPL-3 | file LICENSE
Authors
Daniel Adler [aut], Christian Gläser [aut], Oleg Nenadic [aut], Jens Oehlschlägel [aut, cre], Martijn Schuemie [aut], Walter Zucchini [aut]
Initial release
2020-10-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.