row_swap: Swap two rows

View source: R/row_operations.R

row_swapR Documentation

Swap two rows

Description

Swap two rows

Usage

row_swap(A, row1, row2)

Arguments

A

The matrix of which to swap rows

row1

The first row to swap

row2

The second row to swap

Value

The matrix A of which to swap rows

Examples


A <- diag(3)
row_swap(A, 2, 3)


jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.