Learn R Programming

omxr (version 0.3.3)

long_matrix: Transform a matrix into long format

Description

Transform a matrix into long format

Usage

long_matrix(matrix, value_name = NULL)

Arguments

matrix

An R matrix with row and column names or indices

value_name

A character string identifying the name of the value column in the output data_frame