vec | R Documentation |
Returns a 1-column matrix, stacking the columns of x
, a matrix or vector.
Also supports comma-separated inputs similar to the concatenation
function c
.
vec(x, ...)
x |
A matrix or vector |
... |
(optional) additional objects to be stacked |
A one-column matrix containing the elements of x
and ...
in column order
vec(1:3) vec(matrix(1:6, 2, 3)) vec(c("hello", "world")) vec("hello", "world") vec(1:3, "hello", "world")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.