R/rotateMatrix90.R

#' rotateMatrix90
#'
#' Rotate a matrix 90 degrees clockwise.
#'
#' From http://www1.maths.lth.se/help/R/image/
#'
#' @param x input matrix.
#'
#' @return The rotated matrix
#'
#' @keywords keywords
#'
#' @include mirrorMatrix.R
#'
#' @export
#'
rotateMatrix90 <- function(x) {
  a <- t(mirrorMatrix(x))
  return(a)
}
jrminter/rEDS documentation built on May 19, 2019, 11:54 p.m.