entry_shuffle: Entry shuffle

Description Usage Arguments Details Value Examples

View source: R/entry_shuffle.R

Description

Entry shuffle

Usage

1
entry_shuffle(x, row_position, column_position, replacement)

Arguments

x

a matrix.

row_position

an integer indicating the row's index.

column_position

an integer indicating the column's index.

replacement

the entry to be inserted into the matrix.

Details

Replace a matrix entry.

Value

A matrix with a modified entry.

Examples

1
2
3
4
5
## Not run: 
B <- matrix(numeric(15), nrow = 5, ncol = 3, byrow = TRUE)
entry_shuffle(B, 3, 2, -1)

## End(Not run)

allgebrist/algodyn documentation built on Oct. 21, 2019, 2:47 a.m.