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 July 17, 2025, 3:09 a.m.