matrixslices | R Documentation |
Matrix columnwise slice centered on different positions for each column
matrixslices(mat, positions, posminus, posplus)
mat |
A matrix |
positions |
Center positions, vector. One element for each column in mat |
posminus |
Scalar number of upstream positions in addition to center |
posplus |
Scalar number of downstream positions in addition to center |
Matrix of column slices
A <- matrix(1:10, ncol=2)
matrixslices(A, c(4, 2), 1, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.