as.mRowVector | R Documentation |
These functions coerce an object to a 2-dimensional array
in the shape of a
row or column vector, i.e. an array with dimensions c(1,d)
or c(d,1)
respectively, where d=length(x)
.
as.mRowVector(x, USE.NAMES = TRUE) as.mColVector(x, USE.NAMES = TRUE)
x |
An object that can be passed to |
USE.NAMES |
If |
A row or column vector with the data from x
.
x <- c(a=1, b=2, c=3) as.mColVector(x) y <- matrix(1:12, 3, 4) as.mRowVector(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.