Description Usage Arguments Value Examples
Create new matrix copying dimensions from the existing one
1 | with_same_dims(mat, data)
|
mat |
a matrix with desired dimensions |
data |
sigle numeric value or numeric vector |
a matrix
1 2 3 4 | x <- matrix(7, 3, 6)
x
with_same_dims(x, 0)
with_same_dims(x, c(1, 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.