matrixRep | R Documentation |
Repeat a matrix 'x' m times by row and n time by column.
matrixRep(x, m = 1, n = 1)
x |
a matrix or a numeric vector. |
m |
the desired number of rows. |
n |
the desired number of columns. |
Return a matrix repeated m (rows) * n (columns) times
matrixNew
{
## Not run:
matrixRep(rnorm(3), m = 2, n = 3)
matrixRep(matrix(rnorm(6), ncol = 2), m = 3, n = 4)
matrixRep(t(c(T, F)), m = 4, n = 3)
matrixRep(t(letters[1:5]), m = 4, n = 1)
## End(Not run)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.