pad_matrix | R Documentation |
Pad a matrix
pad_matrix(x, pad_size = 1L, pad = 0L)
x |
The matrix to pad. |
pad_size |
An integer giving the number of columns/rows to pad with. |
pad |
A single value giving the padding. |
A matrix
x <- matrix(c(1:9), nrow = 3, ncol = 3)
beadplexr:::pad_matrix(x)
x <- matrix(c(1:4), nrow = 2, ncol = 2)
beadplexr:::pad_matrix(x)
beadplexr:::pad_matrix(x, pad_size = 2L)
beadplexr:::pad_matrix(x, pad = NA)
beadplexr:::pad_matrix(x, pad = "xx")
x <- matrix(c(1:6), nrow = 3, ncol = 2)
beadplexr:::pad_matrix(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.