colVec | R Documentation |
Creates a column or row vector from a numeric vector.
colVec(x)
rowVec(x)
x |
a numeric vector. |
colVec
and rowVec
transform a vector into a column and
row vector, respectively. A column vector is a matrix object with one
column, and a row vector is a matrix object with one row.
x = rnorm(5)
colVec(x)
rowVec(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.