Learn R Programming

omxr (version 0.3.3)

gather_matrix: Gather the destinations of a Origin-Destination matrix

Description

Gather the destinations of a Origin-Destination matrix

Usage

gather_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

Value

A tibble with row and column ids and matrix values.