matrixop: Set the values of the cell in subset of matrix.

matrixopR Documentation

Set the values of the cell in subset of matrix.

Description

If replacing specific cell values use mset_values. If you want to change a sub-matrix of the whole matrix then use mset_matrix.

Usage

mset_values(matrix, i, j, replacement)

mset_matrix(matrix, i, j, replacement)

Arguments

matrix

A matrix.

i, j

The index of the rows and columns respectively.

replacement

The values to set the

Functions

  • mset_values: Set the values of particular cells

  • mset_matrix: Set the values of a submatrix

See Also

Other Matrix manipulators: mset_names()


emitanaka/simulate documentation built on July 1, 2022, 9:32 a.m.