rotate: Rotate a matrix 90 degrees clockwise or anti-clockwise

View source: R/rotateMatrix.R

rotateR Documentation

Rotate a matrix 90 degrees clockwise or anti-clockwise

Description

Rotate a matrix 90 degrees clockwise or anti-clockwise

Usage

rotate(x, clockwise = TRUE)

Arguments

x

matrix

clockwise

logical, if TRUE rotate clockwise, if FALSE rotate anti-clockwise

Value

matrix


johngodlee/JLGMisc documentation built on June 29, 2024, 9:15 p.m.