Description Usage Arguments Value See Also Examples
A simple wrapper for rep that takes a vector and creates a matrix by replicating it certain number of times either as rows or as columns.
1 |
vec |
A vector of any mode except list. |
nrep |
A strictly positive scalar that determines how many times |
dim |
A scalar with value of either 1 or 2. Value 1 will copy vector |
A matrix with length(vec) rows and nrep columns if dim==2 and vice versa if dim==1.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.