comat (version 0.8.2)

rcpp_xy_from_matrix: Coordinates from a matrix

Description

This function gets coordinates (row and column numbers) of the matrix cells.

Usage

rcpp_xy_from_matrix(x, cell = NULL)

Arguments

x

A matrix

cell

A vector of cell number. If NULL, the coordinates will be calculated for the whole matrix