Description Usage Arguments Examples
Extend the rows and columns of a matrix by a value.
1 |
x |
Matrix. |
data |
Value to insert into new elements. |
nrow |
Integer. Number of rows to add. |
ncol |
Integer. Number of columns to add. |
1 2 3 4 | mat <- matrix(seq(16), nrow=4)
grow.matrix(mat, nrow=2)
grow.matrix(mat, 0, nrow=4, ncol=2)
grow.matrix(mat, -1, nrow=0, ncol=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.