R/mirrorMatrix.r

#' mirror.matrix
#' 
#' From http://www1.maths.lth.se/help/R/image/
#'
#' @param x input matrix.
#'
#' @return The mirrored matrix
#'
#' @keywords keywords
#'
#' @export
mirror.matrix <- function(x) {
  xx <- as.data.frame(x)
  xx <- rev(xx)
  xx <- as.matrix(xx)
  return(xx)
}
jrminter/rXEDS documentation built on May 19, 2019, 11:55 p.m.