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))

Try the soundClass package in your browser

Any scripts or data that you put into this service are public.

soundClass documentation built on May 30, 2022, 1:07 a.m.