`slice_matrix()` returns the slice of `x` at index `i` along dimension `along` as a matrix of the two other dimensions, in their original order and with their dimnames. Unlike `x[i, , ]`, it keeps dimensions of length one (e.g. a model with a single sector), so the result always works with `

slice_matrix(x, i, along = 1L)

Arguments

x

Three-dimensional array.

i

Index (name or position) along dimension `along`.

along

Dimension to slice: 1, 2 or 3.

Value

Matrix