gather_matrix: Gather the destinations of a Origin-Destination matrix

View source: R/long_matrix.R

gather_matrixR Documentation

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.


gregmacfarlane/omxr documentation built on May 7, 2022, 11:42 a.m.