lev_simplify_matrix {levitate} | R Documentation |
Simplify a matrix
Description
Given an input matrix, try and simplify it to a scalar or vector. This requires that one or both
of the dimensions are 1. If the matrix has dimnames()
and the output has more than one item,
name the elements according to the longest dimname.
Usage
lev_simplify_matrix(m)
Arguments
m |
A matrix. If |
Value
A scalar, vector or matrix as described above.
[Package levitate version 0.2.0 Index]