Learn R Programming

arrowheadr (version 1.0.2)

rev_matrix_rows: reverses the order of rows or columns in a matrix

Description

reverses the order of rows or columns in a matrix

Usage

rev_matrix_rows(x)

rev_matrix_cols(x)

Value

a matrix

Arguments

x

matrix

Examples

Run this code
rev_matrix_rows(diag(c(1,2)))

Run the code above in your browser using DataLab