R/flipMatrix.R

#' Flip matrix (upside-down)
#'
#' From http://www1.maths.lth.se/help/R/image/
#'
#' @param x Input matrix.
#'
#' @return The rotated matrix
#'
#' @keywords keywords
#'
#' @include rotateMatrix180.R
#'
#' @export
flipMatrix <- function(x) {
  xx <- mirrorMatrix(rotateMatrix180(x))
  return(xx)
}
jrminter/rEDS documentation built on May 19, 2019, 11:54 p.m.