R/rotate.R

#' rotate a matrix 
#' 
#' @param x the input matrix
#' @return rotated matrix
#' @keywords internal
#' 
rotate <- function (x) {
  rot_x = t (
    apply (
      x, 
      MARGIN = 2, 
      FUN = rev))
  
  return(rot_x)
}
bnasr/wiad documentation built on July 21, 2024, 2:38 p.m.