R/r_cw.R

Defines functions r_cw

#' Rotate a matrix clockwise
#' @title Rotate a matrix
#' @description  Rotate a matrix 90ยบ clockwise
#' @param mat a matrix
#' @usage r_cw(mat)
#' @return Rotated matrix
#' @author Bruno Silva
#' @keywords internal
#' @noRd
 
r_cw <- function(mat) t(apply(mat, 2, rev))
bmsasilva/soundClass documentation built on Jan. 10, 2023, 3:34 p.m.