mat2df: Convert matrices to data frames

View source: R/mat2df.R

mat2dfR Documentation

Convert matrices to data frames

Description

mat2df converts a matrix mat to a data frame. mat2tbl converts mat to a tibble.

Usage

mat2df(mat, col.names = c("row", "col", "value"))

mat2tbl(mat, col.names = c("row", "col", "value"))

Arguments

mat

Matrix to convert.

col.names

Output column names. Defaults to c("row", "col", "value").


bldavies/bldr documentation built on March 29, 2024, 10:22 a.m.