vec

0th

Percentile

Vectorize a Matrix

Returns a 1-column matrix, stacking the columns of x, a matrix or vector

Usage
vec(x)
Arguments
x

A matrix or vector

Value

A one-column matrix containing the elements of x in column order

Aliases
  • vec
Examples
# NOT RUN {
vec(1:3)
vec(matrix(1:6, 2, 3))
vec(c("hello", "world"))
# }
Documentation reproduced from package matlib, version 0.9.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.