repm | R Documentation |
Matrix generalization of rep. If 'x' is a vector, the ordinary rep() is used.
repm(x, times = 1, byrow = FALSE, length.out = NULL)
x |
is a matrix or vector. |
times |
is the times to repeat the matrix/vector. |
byrow |
is TRUE if the matrix is to be repeated vertically, and FALSE if horizontally. |
length.out |
is the number of columns of the output matrix if byrow==FALSE, the number of rows of the output matrix if byrow==TRUE, and the length of the output vector if the input is a vector. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.