indMatrix: Create a matrix filled with its element indices

Description Usage Arguments Author(s) See Also Examples

View source: R/indMatrix.R

Description

Genereta a matrix of the same size as provided matrix x, where each element represents its index.

Usage

1

Arguments

x

A matrix.

Author(s)

Vilmantas Gegzna

See Also

row,col

Other matrix operations in spMisc: corr_vec2mat(), nTri2nDiag(), revalueMatrix(), sort_matrix_elements, which.in(), which.max.all(), which.max.perRow()

Examples

1
2
 indMatrix(matrix(NA, 2, 5))
 indMatrix(matrix(NA, 5, 2))

GegznaV/spMisc documentation built on April 26, 2020, 5:59 p.m.