matrixslices: Matrix columnwise slice centered on different positions for...

matrixslicesR Documentation

Matrix columnwise slice centered on different positions for each column

Description

Matrix columnwise slice centered on different positions for each column

Usage

matrixslices(mat, positions, posminus, posplus)

Arguments

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

Value

Matrix of column slices

Examples

A <- matrix(1:10, ncol=2)
matrixslices(A, c(4, 2), 1, 1)


powestermark/pwrutilities documentation built on Dec. 28, 2024, 4:44 a.m.