vec2mat | R Documentation |
Given two input vectors, expands these vectors into matrices based on the dimensions of the other vector. Returns either the matrix in x, or the matrix in y.
vec2mat(x, y, dim)
x, y |
two vectors of any type. |
dim |
which dimension of the output matrix to return. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.