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
#'
#' @export
flip.matrix <- function(x) {
  xx <- mirror.matrix(rotate180.matrix(x))
  return(xx)
}
jrminter/rXEDS documentation built on May 19, 2019, 11:55 p.m.