rcpp_xy_from_matrix function

Coordinates from a matrix

Coordinates from a matrix

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

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