Skip to contents

Convert a matrix to a matrix of coordinates and values

Usage

matrix_to_coords(mat)

Arguments

mat

A matrix to be converted to coordinate pair and data columns

Value

A data.frame with row, col, and data columns