rot90: Rotate a matrix

View source: R/Utilities.R

rot90R Documentation

Rotate a matrix

Description

Function rotate sa matrix 90 degree counterclockwise

Usage

rot90(A)

Arguments

A

matrix to be rotated 90 degree counterclockwise

Value

B: rotated matrix A

Author(s)

Linh Nguyen

Examples

A = matrix(c(1:10),5,2)
rot90(A)

RoDivinity/BP2003 documentation built on Oct. 9, 2022, 9:33 a.m.