
Last chance! 50% off unlimited learning
Sale ends in
This function returns a vector obtained by stacking the columns of
vec(x)
Let vec
(
a numeric matrix.
x <- matrix(rep(1:10, each = 10), ncol = 10)
x
y <- vec(x)
y
Run the code above in your browser using DataLab